You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
780 B
36 lines
780 B
|
|
#include "stdafx.h"
|
|
#include "resource.h"
|
|
|
|
// Stuff for logfile
|
|
LPWSTR MakeWideStrFromAnsi(LPSTR psz);
|
|
void MakePath(LPTSTR lpPath);
|
|
void AddPath(LPTSTR szPath, LPCTSTR szName );
|
|
CString AddPath(CString szPath, LPCTSTR szName );
|
|
|
|
class MyLogFile
|
|
{
|
|
protected:
|
|
// for our log file
|
|
TCHAR m_szLogFileName[MAX_PATH];
|
|
BOOL m_bDisplayTimeStamp;
|
|
BOOL m_bDisplayPreLineInfo;
|
|
|
|
HANDLE m_hFile;
|
|
|
|
public:
|
|
TCHAR m_szLogFileName_Full[MAX_PATH];
|
|
|
|
MyLogFile();
|
|
~MyLogFile();
|
|
|
|
TCHAR m_szLogPreLineInfo[100];
|
|
TCHAR m_szLogPreLineInfo2[100];
|
|
BOOL m_bFlushLogToDisk;
|
|
|
|
int LogFileCreate(TCHAR * lpLogFileName);
|
|
int LogFileClose();
|
|
|
|
void LogFileTimeStamp();
|
|
void LogFileWrite(TCHAR * pszFormatString, ...);
|
|
};
|