dev.nlited.com

>>

WinMain.cpp

<<<< prev
next >>>>

2016-01-27 00:48:51 chip Page 1543 📢 PUBLIC

WinMain.c: 1/*************************************************************************/ 2/** WinMain.c: Program entry point. **/ 3/** (C)2013 nlited systems, Chip Doran **/ 4/*************************************************************************/ 5#include <Windows.h> 6#include "Util.h" 7#include "VerID.h" 8#include "Globals.h" 9 10 11HINSTANCE ghInst; 12HMAIN ghMain; 13 14int CALLBACK WinMain(HINSTANCE hInst, HINSTANCE hPrev, LPSTR CmdLine, int CmdShow) { 15 int Err= ERR_OK; 16 ghInst= hInst; 17 Print(PRINT_DEBUG,"Rocket %s [%s]",gVerID.BuildStr,gVerID.BuildTime); 18 CoInitializeEx(0,COINIT_MULTITHREADED); 19 SoundMgrCreate(); 20 if(IsErr(Err= MainCreate(&ghMain))) { 21 Err= Error(Err,"WinMain: Unable to create Main window."); 22 } else { 23 MainLoop(ghMain); 24 MainDestroy(ghMain); 25 } 26 SoundMgrDestroy(); 27 CoUninitialize(); 28 return(Err); 29} 30


WebV7 (C)2018 nlited | Rendered by tikope in 3081.133ms | 216.73.216.168