Hello, I have the following code:
However It gives me the following problems when i compile:
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nCmdShow)
MessageBox(NULL, "Goodbye, cruel world!", "Note", MB_OK);
Please help. I am running windowsxp sp2 and compiling with fresh compy ofvisual studio c++ express with the platform sdk
------ Build started: Project: RTS, Configuration: Debug Win32 ------
c:\simple.cpp(6) : error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'const char ' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
Build log was saved at "file://c:\BuildLog.htm"
RTS - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========