LogTrace

所属分类:Windows编程
开发工具:Visual C++
文件大小:42KB
下载次数:9
上传日期:2005-06-01 17:50:33
上 传 者Majortang
说明:  编写DLL文件,设置动态LOG文件的一个小代码
(prepared DLL files, dynamic LOG document set up a small code)

文件列表:
LogTrace.ncb (58368, 2005-06-01)
LogTrace.001 (4315, 1999-01-18)
LogTrace.aps (17936, 2005-03-07)
LogTrace.cpp (1547, 1999-01-18)
LogTrace.def (389, 1999-01-18)
LogTrace.dsp (4248, 2004-02-26)
LogTrace.dsw (539, 2004-02-26)
res (0, 2004-10-18)
res\LogTrace.rc2 (400, 1999-01-18)
LogTrace.opt (104448, 2005-06-01)
LogTrace.plg (9865, 2005-03-07)
LogTrace.rc (3035, 1999-01-18)
Resource.h (408, 1999-01-18)
StdAfx.cpp (206, 1999-01-18)
StdAfx.h (1380, 1999-01-18)
Trace.cpp (7072, 2005-03-07)
Trace.h (3775, 2004-12-30)

What does the code do? The code was designed to log trace statements to a text file for release mode applications at customer sites. At the end of the day the customers emails me the text log. How do I integrate it with my existing code or how do I use it? Add LogTrace.lib to the Object/Library modules. Include header Trace.h to your project. In your code TraceStart(); Trace("This is my string value [%s]\n", m_strMessage); //Works like printf or TRACE There are other functions and options described in trace.h. If there is a similar article on CodeGuru already, then how does this one differ? Why would someone want to use your version? There are some good debug tips on the site. But this is more geared towards customer site logging. Is there some aspect of the code that is of particular interest that perhaps wants to be covered in the documentation and put on the web page? No, simple code. Does the code work under UNICODE? If not, is there a reason? Yes. What version of MFC was this code built with? MSVC 5.0

近期下载者

相关文件


收藏者