"const wchar_t is incompatible with parameter of type "LPCSTR"

 

MessageBox(NULL, L"TEST", L"TEST", MB_OK);

 

You may get this error if you "Use Multi-Byte Character Set", 

"const wchar_t is incompatible with parameter of type "LPCSTR"

 

In this case, use TEXT("") instead of L""

MessageBox(NULL, TEXT("TEST"), TEXT("TEST"), MB_OK);

 

posted @ 2015-03-19 10:25  細水長流  阅读(473)  评论(0编辑  收藏  举报