demoII2_2.cpp
Upload User: husern
Upload Date: 2018-01-20
Package Size: 42486k
Code Size: 1k
Category:

Game Program

Development Platform:

Visual C++

  1. // DEMOII2_2.CPP - a simple message box
  2. #define WIN32_LEAN_AND_MEAN 
  3. #include <windows.h>        // the main windows headers 
  4. #include <windowsx.h>       // a lot of cool macros
  5. // main entry point for all windows programs
  6. int WINAPI WinMain(HINSTANCE hinstance,
  7.        HINSTANCE hprevinstance,
  8.        LPSTR lpcmdline,
  9.        int ncmdshow)
  10. {
  11. // call message box api with NULL for parent window handle
  12. MessageBox(NULL, "THERE CAN BE ONLY ONE!!!",
  13.                  "MY FIRST WINDOWS PROGRAM",
  14.                   MB_OK | MB_ICONEXCLAMATION);
  15. // exit program
  16. return(0);
  17. } // end WinMain