Windows日誌打印API的封裝使用OutputDebugStringA

在C++編程中,常常會須要打印日誌使用dbgview查看相應的一些信息,經常使用的是這樣的: #include <iostream> #include <Windows.h> #include <tchar.h> using namespace std; void DbgPrint(const TCHAR *format, ...) { TCHAR buf[4096]; va_list ar
相關文章
相關標籤/搜索