This is a sample to output string to debugger.
DWORD dwTickCount = GetTickCount();
LPWSTR szBuffer;
wsprintf(szBuffer, _T(" [Debug] The computer has ran %ld ms."),
dwTickCount);
OutputDebugString(szBuffer);
GetTickCount() :
Retrieves the number of milliseconds that have elapsed since the system was started, up to 49.7 days.
OutputDebugString() : Sends a string to the debugger for display.
沒有留言:
張貼留言