Friday, November 22, 2013

Output debug data to debug windows in Visual C++

//test
g_tick1 = g_tick2;
g_tick2 = g_pfnGetTickCount();
if (1)
{

WCHAR buffer[50];
swprintf_s(buffer, 50, L"james %d ms passed: --\n\0",
(g_tick2 - g_tick1));

OutputDebugStringW(buffer);

}


time the code, and send to the debug window

0 Comments:

Post a Comment

<< Home