home *** CD-ROM | disk | FTP | other *** search
/ Game Audio Programming / GameAudioProgramming.iso / Extras / Sensaura / SDK1.0 / data1.cab / Example_Files / ZoomFX / winmain.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  2000-06-13  |  1.2 KB  |  45 lines

  1. /*
  2.     Company:            Sensaura Ltd
  3.     Copyright:          (C) 1999
  4.  
  5.     File Name:            winmain.cpp
  6.     File Description:    Source file for implementation of WinMain function
  7.     Author:                Adam Philp
  8.     Last Update:        08-DEC-99
  9.  
  10.     Target Compiler:    Microsoft Visual C++ Version 5.0
  11. */
  12.  
  13. ///////////////////////    Included files ////////////////////////////////////////////////////////////
  14.  
  15. #include <windows.h>
  16.  
  17. #include "applicat.h"
  18. #include "debug.h"
  19. #include "resource.h"
  20.  
  21. /////////////////////// Global variables //////////////////////////////////////////////////////////
  22.  
  23. Application* g_pApp = NULL;
  24.  
  25. /////////////////////// WinMain ///////////////////////////////////////////////////////////////////
  26.  
  27. int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR pCmdLine, int cmdshow)
  28. {
  29.     int ret;
  30.     char achAppTitle[100];
  31.  
  32.     PTRACE("WinMain(hInstance:%X, hPrevInstance:%X, pCmdLine:%s, cmdShow:%X)", hInstance, hPrevInstance, pCmdLine, cmdshow);
  33.  
  34.     LoadString(hInstance, IDS_APPTITLE, achAppTitle, 100);
  35.     Application app(achAppTitle, hInstance, hPrevInstance, pCmdLine, cmdshow);
  36.  
  37.     g_pApp = &app;
  38.     ret = app.Run();
  39.  
  40.     PTRACE("WinMain(): App returned %d", ret);
  41.  
  42.     return ret;
  43. }
  44.  
  45.