OutputDebugString的用法
2010-01-08 22:59
429 查看
OutputDebugString is a API function, it is used to help programmer debug the program, which is like
TRACE or afxDump, it is work with Dbgview. in Debug mode it performance as TRACE. But in Release mode
it can be monitor in DbgView.
OutputDebugString is explained in MSDN
The OutputDebugString function sends a string to the debugger for the current application.
VOID OutputDebugString(
LPCTSTR lpOutputString // pointer to string to be displayed
);
Parameters:
lpOutputString parameters Pointer to the null-terminated string to be displayed.
Return Values
This function does not return a value.
Remarks
If the application has no debugger, the system debugger displays the string.
If the application has no debugger and the system debugger is not active,
OutputDebugString does nothing.
Example:
void CSdfghfgView::OnRButtonDown(UINT nFlags, CPoint point)
{
// TODO: Add your message handler code here and/or call default
OutputDebugString("right button is pressed");
}
TRACE or afxDump, it is work with Dbgview. in Debug mode it performance as TRACE. But in Release mode
it can be monitor in DbgView.
OutputDebugString is explained in MSDN
The OutputDebugString function sends a string to the debugger for the current application.
VOID OutputDebugString(
LPCTSTR lpOutputString // pointer to string to be displayed
);
Parameters:
lpOutputString parameters Pointer to the null-terminated string to be displayed.
Return Values
This function does not return a value.
Remarks
If the application has no debugger, the system debugger displays the string.
If the application has no debugger and the system debugger is not active,
OutputDebugString does nothing.
Example:
void CSdfghfgView::OnRButtonDown(UINT nFlags, CPoint point)
{
// TODO: Add your message handler code here and/or call default
OutputDebugString("right button is pressed");
}
相关文章推荐
- OutputDebugString的用法
- OutputDebugString用法
- debugview + outputdebugstring 调试程序 同时也可以输出调试日志文件
- Delphi RAD Berlin OutputDebugString 输出调试信息
- OutputDebugString()
- win32使用OutputDebugString输出调试信息的方法
- 使用OutputDebugString帮助调试
- OutputDebugString
- OutputDebugString 输出信息到调试器
- 使用OutputDebugString输出调试信息,使用DebugWindow来捕获它
- [原创]捕捉 OutputDebugString 输出的字符串
- [原创]捕捉 OutputDebugString 输出的字符串
- win32程序调试OutputDebugString 类似printf格式化输出
- OutputDebugString()
- 理解 Win32 "OutputDebugString"
- 使用OutputDebugString帮助调试
- 包装outputdebugstring使其支持变参
- 写了个统一 OutputDebugString 输出的函数
- dbgview OutputDebugString输出函数
- OutputDebugString()