< WINAPI Programming

This project displays a message box...

#include<windows.h>

int _stdcall WinMain (HINSTANCE hInst, HINSTANCE hPrev, LPSTR lpCmd, int nShow)

{

	MessageBox (NULL, TEXT("Hello"), TEXT("Hello, Windows!"), MB_OK);
	
return 0;

}


Note: You may need to manually include the user32.lib for proper linkage...

This article is issued from Wikiversity. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.