windows C++ 编译出的dll 中使用OutputDebugStringA打印输出调试信息
char szBufLog[256]; memset(szBufLog, 0, sizeof(szBufLog)); sprintf(szBufLog, "Stop : Handle = %lu, time= %s \n", Wid,video.time; OutputDebugStringA(szBufLog);
在第三方调用dll 时,有些信息想要打印出来看哪里程序出问题,可以用
OutputDebugStringA 输出信息,用Debugview.exe工具随时查看输出信息。
此函数无论在debug 还是release程序中都可以使用打印输出

浙公网安备 33010602011771号