Page Menu
Home
desp's stash
Search
Configure Global Search
Log In
Files
F571570
main.cpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
786 B
Subscribers
None
main.cpp
View Options
//#include <vld.h> // Visual Leak Detector
#include
<atlbase.h> // base ATL classes
#include
<atlapp.h> // base WTL classes
CAppModule
_Module
;
#include
"MainGui.h"
MainGui
*
pMainGui
=
NULL
;
// for Logger
int
APIENTRY
_tWinMain
(
HINSTANCE
hInstance
,
HINSTANCE
hPrevInstance
,
LPTSTR
lpCmdLine
,
int
nCmdShow
)
{
CoInitialize
(
NULL
);
AtlInitCommonControls
(
ICC_LISTVIEW_CLASSES
|
ICC_TREEVIEW_CLASSES
);
HRESULT
hRes
=
_Module
.
Init
(
NULL
,
hInstance
);
ATLASSERT
(
SUCCEEDED
(
hRes
));
int
nRet
=
0
;
// BLOCK: Run application
{
MainGui
dlgMain
;
pMainGui
=
&
dlgMain
;
// o_O
CMessageLoop
loop
;
_Module
.
AddMessageLoop
(
&
loop
);
dlgMain
.
Create
(
GetDesktopWindow
());
dlgMain
.
ShowWindow
(
SW_SHOW
);
loop
.
Run
();
}
_Module
.
Term
();
CoUninitialize
();
return
nRet
;
}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Sun, Mar 1, 9:46 PM (1 d, 23 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
d3/ca/bcb87ead436535d02e4c8e63dc41
Attached To
rSCY Scylla
Event Timeline
Log In to Comment