dev.nlited.com

>>

WinMain.cpp

<<<< prev
next >>>>

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

WinMain.c: /*************************************************************************/ /** WinMain.c: Program entry point. **/ /** (C)2013 nlited systems, Chip Doran **/ /*************************************************************************/ #include <Windows.h> #include "Util.h" #include "VerID.h" #include "Globals.h" HINSTANCE ghInst; HMAIN ghMain; int CALLBACK WinMain(HINSTANCE hInst, HINSTANCE hPrev, LPSTR CmdLine, int CmdShow) { int Err= ERR_OK; ghInst= hInst; Print(PRINT_DEBUG,"Rocket %s [%s]",gVerID.BuildStr,gVerID.BuildTime); CoInitializeEx(0,COINIT_MULTITHREADED); SoundMgrCreate(); if(IsErr(Err= MainCreate(&ghMain))) { Err= Error(Err,"WinMain: Unable to create Main window."); } else { MainLoop(ghMain); MainDestroy(ghMain); } SoundMgrDestroy(); CoUninitialize(); return(Err); }


WebV7 (C)2018 nlited | Rendered by tikope in 164.623ms | 3.23.103.14