1.准备头文件mylog.h
#pragma once
#ifndef _MYLOG_H_
#define _MYLOG_H_
#include <windows.h>
#include <tchar.h>
#define DP0(fmt) {
TCHAR sOut[256];_stprintf_s(sOut,_T(fmt));<
文章介绍了如何在C++项目中使用自定义的mylog.h头文件进行日志打印,并通过Debugview工具捕获和过滤输出信息。在VisualStudio环境下,注意到在调试和非调试模式下Debugview捕获日志的差异,以及如何设置过滤条件来关注特定的日志内容。
1.准备头文件mylog.h
#pragma once
#ifndef _MYLOG_H_
#define _MYLOG_H_
#include <windows.h>
#include <tchar.h>
#define DP0(fmt) {
TCHAR sOut[256];_stprintf_s(sOut,_T(fmt));<
381

被折叠的 条评论
为什么被折叠?