Pages

Sunday, December 31, 2017

Windows Message Box using C Program

C program to print message in Windows Message Box.


#include <windows.h>
int _stdcall WinMain ( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszCmdLine, int nCmdShow )
{
MessageBox ( 0, "Greetings!!!\n C Program Practicals", "MyWindow", 0 ) ;
return 0 ;
}

Output of program

This program will display following message in Windows message box.

Windows Message Box
Windows Message Box using C Program

No comments:

Post a Comment