Hello, I have the following code:
Code:
#include <windows.h>
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nCmdShow)
{
MessageBox(NULL, "Goodbye, cruel world!", "Note", MB_OK);
return 0;
}
However It gives me the following problems when i compile:
Code:
------ Build started: Project: RTS, Configuration: Debug Win32 ------
Compiling...
simple.cpp
c:\simple.cpp(6) : error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'const char [22]' 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 ==========
Please help. I am running windowsxp sp2 and compiling with fresh compy ofvisual studio c++ express with the platform sdk