Discuz! Board

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz

C++日志查看工具

查看数: 3364 | 评论数: 2 | 收藏 0
关灯 | 提示:支持键盘翻页<-左 右->
    组图打开中,请稍候......
发布时间: 2016-4-5 21:03

正文摘要:

回复

Qter 发表于 2025-3-7 16:41:03
// Unicode项目(默认)
OutputDebugString(L"宽字符调试信息\n");
// 非Unicode项目
OutputDebugString("ANSI调试信息\n");



DWORD errorCode = GetLastError();
char buffer[256];
sprintf_s(buffer, "错误码: %d\n", errorCode);
OutputDebugStringA(buffer);
Qter 发表于 2023-5-4 19:05:29
本帖最后由 Qter 于 2023-5-4 19:08 编辑

OutputDebugString
Dbgview
::OutputDebugString(_T("Floating point (%%e, %%f, %%g, and %%G) is not supported by the WTL::CString class."));                        OutputDebugString(("Handles " + IntToString(m_handles.size()) + ", Woke up by " + IntToString(result-WAIT_OBJECT_0) + ", Busied for " + IntToString(timeBeforeWait-lastTime) + " us, Waited for " + IntToString(timeAfterWait-timeBeforeWait) + " us, max " + IntToString(milliseconds) + "ms\n").c_str());

QQ|Archiver|手机版|小黑屋|firemail ( 粤ICP备15085507号-1 )

GMT+8, 2025-5-1 03:46 , Processed in 0.058451 second(s), 23 queries .

Powered by Discuz! X3

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表