使用如下函数辅助调试: OutputDebugString 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 Pointer to the null-terminated string to be displayed. Return Values This function does not return a value. Res 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. Windows CE: Windows CE supports only the Unicode version of this function. QuickInfo Windows NT: Requires version 3.1 or later. Windows: Requires Windows 95 or later. Windows CE: Requires version 1.0 or later. Header: Declared in winbase.h. Import Library: Use kernel32.lib. Unicode: Implemented as Unicode and ANSI versions on Windows NT.See Also Debugging Overview, Debugging Functions
OutputDebugString
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
Pointer to the null-terminated string to be displayed.
Return Values
This function does not return a value. Res
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. Windows CE: Windows CE supports only the Unicode version of this function. QuickInfo
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Requires version 1.0 or later.
Header: Declared in winbase.h.
Import Library: Use kernel32.lib.
Unicode: Implemented as Unicode and ANSI versions on Windows NT.See Also
Debugging Overview, Debugging Functions