Here's the simple 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;
}
I chose Win32 application and chose "windows application", not "console application". Is the program at fault, or did I do something wrong when setting up my vc++ compiler for Win32?
Actually, here's the turorial I'm following:
http://www.winprog.org/tutorial/start.html
and the error I get is this:
error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'const char [22]' to 'LPCWSTR'
Thanks for any help.