I'm reading a tutorial on creating Windows applications
http://www.winprog.org/tutorial/start.html
It doesn't give any compiler specific insructions on how to compile this example, only that is should be compiled as a c file.
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 compiled the code in Visual Studio C++ and when I ran the program, I got this:
How could I compile the code in Visual Studio C++ to get the proper text in the code displayed?