home *** CD-ROM | disk | FTP | other *** search
/ Windows Game Programming for Dummies (2nd Edition) / WinGamProgFD.iso / mac / Source / GPCHAP03 / PROG3_2.CPP < prev    next >
C/C++ Source or Header  |  2002-04-24  |  455b  |  20 lines

  1.  
  2. // PROG3_2.CPP - A simple message box
  3. #define WIN32_LEAN_AND_MEAN 
  4. #include <windows.h>         
  5. #include <windowsx.h>    
  6.  
  7. // main entry point for all windows programs
  8. int WINAPI WinMain(HINSTANCE hinstance,
  9.             HINSTANCE hprevinstance,
  10.             LPSTR lpcmdline,
  11.             int ncmdshow) 
  12. {
  13. // call message box api
  14. MessageBox(NULL, "What's up world!",
  15.                  "My First Windows Program",MB_OK);
  16.  
  17. // exit program
  18. return(0);
  19. } // end WinMain
  20.