// test.cpp : �������̨Ӧ�ó������ڵ㡣
//

#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;

	// ��ʼ�� MFC ����ʧ��ʱ��ʾ����
	if (!AfxWinInit(::GetModuleHandle(NULL), NULL, ::GetCommandLine(), 0))
	{
		// TODO: ���Ĵ�������Է���������Ҫ
		_tprintf(_T("����: MFC ��ʼ��ʧ��\n"));
		nRetCode = 1;
	}
	else
	{
		// TODO: �ڴ˴�ΪӦ�ó������Ϊ��д���롣
		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;
}