- Visual C++源码
- Visual Basic源码
- C++ Builder源码
- Java源码
- Delphi源码
- C/C++源码
- PHP源码
- Perl源码
- Python源码
- Asm源码
- Pascal源码
- Borland C++源码
- Others源码
- SQL源码
- VBScript源码
- JavaScript源码
- ASP/ASPX源码
- C#源码
- Flash/ActionScript源码
- matlab源码
- PowerBuilder源码
- LabView源码
- Flex源码
- MathCAD源码
- VBA源码
- IDL源码
- Lisp/Scheme源码
- VHDL源码
- Objective-C源码
- Fortran源码
- tcl/tk源码
- QT源码
log.cpp
资源名称:iconizer.zip [点击查看]
上传用户:songshun
上传日期:2007-01-04
资源大小:51k
文件大小:2k
源码类别:
按钮控件
开发平台:
Visual C++
- //===========================================================================
- //
- // HomeWork from Belgium Not licensed software
- // 1999 - 2000 No rights reserved
- //
- //===========================================================================
- //
- // Project/Product : Iconizer DLL
- // FileName : log.cpp
- // Author(s) : Bart Gysens
- //
- // Description : Declaration of CLog class
- //
- // Classes : CLog
- //
- // Information :
- // Compiler(s) : Visual C++ 6.0
- // Target(s) : Windows 95/98 and Windows NT (x86)
- // Editor : Visual C++ 6.0 internal editor
- //
- // History
- // Vers. Date Aut. Type Description
- // ----- -------- ---- ------- -----------------------------------------
- // 1.00 22 05 99 BG Create Original
- //
- //===========================================================================
- #include "stdafx.h"
- #include "stdio.h"
- #include "log.h"
- //===========================================================================
- // Macros and typedefs
- //===========================================================================
- //===========================================================================
- //
- // Class : CLog
- // Author(s) : Bart Gysens
- //
- // Description : Declaration of the CLog class
- //
- // Comments : none
- //
- // History : 1.00 : Create
- //
- //===========================================================================
- CLog::CLog()
- {
- }
- void CLog::PutLog( LPSTR pFmt, ... )
- {
- FILE * pFile;
- pFile = fopen( "C:\LOG.TXT", "a" );
- if ( pFile != NULL )
- {
- va_list arg;
- va_start( arg, pFmt );
- vfprintf( pFile, pFmt, arg );
- va_end( arg );
- fclose( pFile );
- }
- }