Log.h
上传用户:pumpssky
上传日期:2007-12-07
资源大小:110k
文件大小:1k
- // Log.h: interface for the CLog class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_LOG_H__31400BF9_4ABA_4102_87C7_258DF95C3351__INCLUDED_)
- #define AFX_LOG_H__31400BF9_4ABA_4102_87C7_258DF95C3351__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- class CLog
- {
- public:
- void Close();
- void Write(LPCSTR message);
- void Open(LPCSTR filename);
- CLog();
- virtual ~CLog();
- private:
- CRITICAL_SECTION m_CriticalSection;
- FILE * fp;
- };
- #endif // !defined(AFX_LOG_H__31400BF9_4ABA_4102_87C7_258DF95C3351__INCLUDED_)