home *** CD-ROM | disk | FTP | other *** search
/ Programming Windows (5th Edition) / Programming Windows, 5th ed. - Companion CD (097-0002183)(1999).iso / Chap01 / HelloMsg / HelloMsg.c next >
Encoding:
C/C++ Source or Header  |  1998-10-09  |  489 b   |  15 lines

  1. /*--------------------------------------------------------------
  2.    HelloMsg.c -- Displays "Hello, Windows 98!" in a message box
  3.                  (c) Charles Petzold, 1998
  4.   --------------------------------------------------------------*/
  5.  
  6. #include <windows.h>
  7.  
  8. int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
  9.                     PSTR szCmdLine, int iCmdShow)
  10. {
  11.      MessageBox (NULL, TEXT ("Hello, Windows 98!"), TEXT ("HelloMsg"), 0) ;
  12.  
  13.      return 0 ;
  14. }
  15.