home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Windows Game Programming for Dummies (2nd Edition)
/
WinGamProgFD.iso
/
mac
/
Source
/
GPCHAP03
/
PROG3_2.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
2002-04-24
|
455b
|
20 lines
// PROG3_2.CPP - A simple message box
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <windowsx.h>
// main entry point for all windows programs
int WINAPI WinMain(HINSTANCE hinstance,
HINSTANCE hprevinstance,
LPSTR lpcmdline,
int ncmdshow)
{
// call message box api
MessageBox(NULL, "What's up world!",
"My First Windows Program",MB_OK);
// exit program
return(0);
} // end WinMain