home *** CD-ROM | disk | FTP | other *** search
/ PC Format (South-Africa) 2001 June / PCFJune.iso / Xenon / XenonSource.exe / gamesystem / source / gamesystem.cpp next >
Encoding:
C/C++ Source or Header  |  2000-04-29  |  912 b   |  35 lines

  1. //-------------------------------------------------------------
  2. //
  3. // Library:    2d Game System
  4. //
  5. // Author:    John M Phillips
  6. //
  7. // Started:    12/03/00
  8. //
  9. // Note:    This file contains the WinMain function which is the
  10. //            main entry point to the program
  11. //
  12. //-------------------------------------------------------------
  13.  
  14. #include "gamesystem.h"
  15.  
  16. //-------------------------------------------------------------
  17. // Windows main entry point
  18.  
  19. int APIENTRY WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,
  20.                      LPSTR lpCmdLine,int nCmdShow)
  21. {
  22.     // if an instance of a class derived from gsCApplication
  23.     // exists then run it, else exit
  24.     
  25.     if (gsCApplication::getApp() != 0)
  26.         return gsCApplication::getApp()->run(hInstance,
  27.                                              hPrevInstance,
  28.                                              lpCmdLine,
  29.                                              nCmdShow);
  30.     else
  31.         return 0;
  32. }
  33.  
  34. //-------------------------------------------------------------
  35.