123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- #include "stdafx.h"
- #include "test.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #endif
- CWinApp theApp;
- using namespace std;
- int _tmain(int argc, TCHAR* argv[], TCHAR* envp[])
- {
- int nRetCode = 0;
-
- if (!AfxWinInit(::GetModuleHandle(NULL), NULL, ::GetCommandLine(), 0))
- {
-
- _tprintf(_T("错误: MFC 初始化失败\n"));
- nRetCode = 1;
- }
- else
- {
-
- if ( LoadLogLibarary() )
- {
-
- if ( g_logStart(5566) )
- TRACE("start ok\r");
- else
- TRACE("start faild\r");
- g_logEnable(true);
- g_Setlogpath("E:\\bin\\aa\\aa.txt");
-
- printf("%lf\r\r",g_GetTime());
- system("pause");
- g_logEnable(true);
- g_logStop();
- FreeLogLibarary();
- }
- }
- return nRetCode;
- }
|