我收到此錯誤:無法從 '爲const char [14]' 轉換參數2到 'LPCWSTR'
cannot convert parameter 2 from 'const char [14]' to 'LPCWSTR'
與下面的代碼。它應該是C,但最多Visual Studio 2012提供了一個空的C++項目:
#include "windows.h"
int WINAPI WinMain (HINSTANCE hinst, HINSTANCE hprevinst, LPSTR cmdline, int showcmd)
{
MessageBox(NULL, "Merhaba Dunya", "Merhaba", MB_OK);
return 0;
}
什麼是不正確的?
L「Merhaba Dunya」 – 2013-03-23 22:38:08
@FlorisVelleman你擊敗了我9秒! – 2013-03-23 22:38:33