WinHello


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
#define WIN32_LEAN_AND_MEAN
#include <windows.h>

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