CLogFile.cpp
资源名称:VC++视频传输.rar [点击查看]
上传用户:hxb_1234
上传日期:2010-03-30
资源大小:8328k
文件大小:1k
源码类别:
VC书籍
开发平台:
Visual C++
- // CLogFile.cpp: implementation of the CLogFile class.
- //
- //////////////////////////////////////////////////////////////////////
- #include "stdafx.h"
- #include "XvidQuantsParser.h"
- #include "CLogFile.h"
- #ifdef _DEBUG
- #undef THIS_FILE
- static char THIS_FILE[]=__FILE__;
- #define new DEBUG_NEW
- #endif
- //////////////////////////////////////////////////////////////////////
- // Construction/Destruction
- //////////////////////////////////////////////////////////////////////
- CLogFile::CLogFile()
- {
- }
- CLogFile::~CLogFile()
- {
- }
- //------------------------------------------------------------------------------
- void CLogFile::Open(char* filepath)
- {
- fptr = fopen(filepath, "wt");
- }
- //------------------------------------------------------------------------------
- void CLogFile::Print(char* msg)
- {
- fprintf(fptr, "%s", msg);
- }
- //------------------------------------------------------------------------------
- void CLogFile::Close(void)
- {
- fclose(fptr);
- }