![](/img/trans.png)
[英]Visual Studio - How can I output debug information to debug window?
[英]How to filter debug output window on visual studio?
如何刪除或過濾此類消息?
這很煩人,並且一直顯示我不明白為什么。 我正在使用 Visual Studio 2019 c++。
看完這行代碼: MessageBox(g_hWnd, string.data(), L"", MB_OK | MB_ICONSTOP | MB_SETFOREGROUND | MB_APPLMODAL | MB_TOPMOST);
始終顯示消息:
windows\dwm\dwmapi\attribute.cpp(105)\dwmapi.dll!00007FFBE41B1940: (caller: 000000018000E820) LogHr(1) tid(83b8) 80070006 Identificador inválido.
但是,如果我刪除MB_ICONSTOP
並僅使用: MessageBox(g_hWnd, string.data(), L"", MB_OK | MB_SETFOREGROUND | MB_APPLMODAL | MB_TOPMOST);
它不顯示。
它也顯示在我不知道的其他事物上。
我添加了#include <Dwmapi.h>
,現在它不再在調試控制台中發送垃圾郵件了。
https://docs.microsoft.com/en-us/windows/win32/api/dwmapi/nf-dwmapi-dwmgetwindowattribute
我認為錯誤是因為它沒有加載 lib dwamip.dll
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.