123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- #include "stdafx.h"
- #include "test.h"
- #include "testDlg.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #endif
- #include "lyfzLoadLibrary.h"
- BEGIN_MESSAGE_MAP(CtestApp, CWinApp)
- ON_COMMAND(ID_HELP, &CWinApp::OnHelp)
- END_MESSAGE_MAP()
- CtestApp::CtestApp()
- {
-
- m_dwRestartManagerSupportFlags = AFX_RESTART_MANAGER_SUPPORT_RESTART;
-
-
- }
- CtestApp theApp;
- BOOL CtestApp::InitInstance()
- {
-
-
-
- INITCOMMONCONTROLSEX InitCtrls;
- InitCtrls.dwSize = sizeof(InitCtrls);
-
-
- InitCtrls.dwICC = ICC_WIN95_CLASSES;
- InitCommonControlsEx(&InitCtrls);
- CWinApp::InitInstance();
- if ( lyfzLibrary::LoadMD5Libaray() )
- {
- BYTE by[33] = {0};
-
-
- lyfzLibrary::g_PtrGetFileMD5("D:\\0.dat", by, 33);
-
- memset(by, 0, 33);
- }
- AfxEnableControlContainer();
-
-
- CShellManager *pShellManager = new CShellManager;
-
-
-
-
-
-
-
- SetRegistryKey(_T("应用程序向导生成的本地应用程序"));
- CtestDlg dlg;
- m_pMainWnd = &dlg;
- INT_PTR nResponse = dlg.DoModal();
- if (nResponse == IDOK)
- {
-
-
- }
- else if (nResponse == IDCANCEL)
- {
-
-
- }
-
- if (pShellManager != NULL)
- {
- delete pShellManager;
- }
-
-
- return FALSE;
- }
|