本文整理汇总了C++中DataManager::GetFileManager方法的典型用法代码示例。如果您正苦于以下问题:C++ DataManager::GetFileManager方法的具体用法?C++ DataManager::GetFileManager怎么用?C++ DataManager::GetFileManager使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DataManager
的用法示例。
在下文中一共展示了DataManager::GetFileManager方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: WinMain
int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE /*hPrevInstance*/,
LPSTR /*lpCmdLine*/,
int /*nCmdShow*/)
{
appInstance = hInstance;
OleInitialize(NULL);
INITCOMMONCONTROLSEX icx;
icx.dwSize = sizeof(INITCOMMONCONTROLSEX);
icx.dwICC = ICC_DATE_CLASSES | ICC_LISTVIEW_CLASSES|ICC_WIN95_CLASSES;
InitCommonControlsEx(&icx);
resInstance = LoadLibrary(_T("TaskRes.dll"));
CryptoUtil::GetCryptoUtil();
NetInit();
DataManager * pMM = DataManager::Get();
// hAccelTable = LoadAccelerators(hInstance, (LPCTSTR)IDC_XMLTREE);
CTaskMainWnd *pAppWnd = new CTaskMainWnd(hInstance, pMM);
RECT r = {
pMM->GetConfiguration()->GetConfigurationInt(_T("mainWindowLeft"), 40),
pMM->GetConfiguration()->GetConfigurationInt(_T("mainWindowTop"), 40),
pMM->GetConfiguration()->GetConfigurationInt(_T("mainWindowRight"), 750),
pMM->GetConfiguration()->GetConfigurationInt(_T("mainWindowBottom"), 550)
};
mainAppHWND = pAppWnd->Create(NULL, r, WS_OVERLAPPEDWINDOW | WS_VISIBLE);
MSG msg;
ZeroMemory(&msg, sizeof(MSG));
// Main message loop:
while (GetMessage(&msg, NULL, 0, 0))
{
//TODO: review why translate accelerator is not being used..
// if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg))
// {
TranslateMessage(&msg);
DispatchMessage(&msg);
// }
}
pMM->Save(pMM->GetFileManager()->GetUserPlanFilename());
delete pAppWnd;
mainAppHWND = NULL;
NetConclude();
OleUninitialize();
return msg.wParam;
}