I am trying to create a (very) simple Win32 GUI program, but for some reason the compiler (I use VC ++ 2008 Express) wants me to manually output each line or char * to LPCWSTR:
I get this compiler error every time I do this, for example, I get this error for "Hello" and "Note":
error C2664: 'MessageBoxW': cannot convert parameter 2 from 'const char [22]' to 'LPCWSTR'
Please tell me that I do not need to quit every time I do it ....
Here is the code:
#include <windows.h> int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { MessageBox(NULL, "Hello", "Note", MB_OK); return 0; }
c windows winapi unicode
Tony r
source share