dev.nlited.com
login
|
Contact
|
Home
|
>>
WinMain.cpp
<<<< prev
next >>>>
3.2.
Rocket: Paint Method
+
3.2.1.
Globals.h
➪
3.2.2.
WinMain.cpp
3.2.3.
Main.cpp
3.2.4.
Image.cpp
3.2.5.
Game.cpp
3.2.6.
ItemList.cpp
3.2.7.
Item.cpp
2016-01-27 00:48:51 chip Page 1543
📢 PUBLIC
TEXT
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
11
HINSTANCE ghInst;
12
HMAIN ghMain;
13
14
int 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