Click here to change the theme.

The following is a very small Windows program.

Use a plain "Win32 Application" project for this. Do not use the AppWizard's option to generate source code; put the following code in a cpp file (such as WinHello.cpp) and add that file to the project .

#define STRICT
#include <windows.h>

int PASCAL WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
		LPSTR lpCmdLine, int nCmdShow) {
MessageBox(NULL, "Hello", "WinHello Program",
return 0;

Hosted by