Page MenuHomedesp's stash

main.cpp
No OneTemporary

main.cpp

#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
nRet = dlgMain.DoModal();
}
_Module.Term();
CoUninitialize();
return nRet;
}

File Metadata

Mime Type
text/x-c
Expires
Sun, Mar 1, 2:53 PM (13 h, 51 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
cb/ea/203fde18969eaaa729bb04ca4e57

Event Timeline