#include <windows.h>
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd)
{
MessageBox(NULL, "motoko kusanagi has hacked your system!", "public security section 9", MB_OK|MB_ICONEXCLAMATION);
}
error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'const char [40]' to 'LPCWSTR'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd)
{
MessageBox(NULL, "motoko kusanagi has hacked your system!", "public security section 9", MB_OK|MB_ICONEXCLAMATION);
}
error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'const char [40]' to 'LPCWSTR'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
解决方案 »
- TinyXML库解析缓冲区的XML格式数据的问题
- 如何使得一个dialog在resizing类型下,只对左右缩放,不能上下缩放
- 请看看
- 写注册表实现自动注册数据源的函数写出来了,放在哪个地方好呢?
- 吐血请教!!!!!!!!!!!!!!!!!!
- rtti最简单的问题
- 23岁学VC还行吗。。。。。
- 高手们给我看看 OICQ是怎么把发送的数据定位到 局域网里的一台机器的???
- 在OnFileSave()中怎么调用void CLineDoc::Serialize(CArchive& ar),
- 怎样在模式对话框中控制刷新父窗口视图,在线等待,马上给分,谢谢!
- 基于Directshow的视频采集如何实现视频压缩
- 读出内存dc所画的图形的像素点坐标
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd)
{
MessageBox(NULL, _T("motoko kusanagi has hacked your system!"), _T("public security section 9"), MB_OK|MB_ICONEXCLAMATION);
}
这是编码问题