programming.nbk: Home | Index | Next Page: Code: float_edit_subclass | Previous Page: Code: CommandLineToArgvW


 Code: dbgprintf

#define _WIN32_IE   0x0400
#include <windows.h>
#include <windowsx.h>
#include <commctrl.h>

#include <string.h>
#include <stdarg.h>
#include <stdio.h>

//##############################################################################
// print with format to debug window
//##############################################################################

void dbgprintf(char *format,...)
{
    va_list arg_ptr;
    char buffer[400];

    va_start(arg_ptr, format);
    vsprintf(buffer, format, arg_ptr);
    va_end(arg_ptr);
    OutputDebugString(buffer);
}

programming.nbk: Home | Index | Next Page: Code: float_edit_subclass | Previous Page: Code: CommandLineToArgvW


Notebook exported on Monday, 7 July 2008, 18:56:06 PM Eastern Daylight Time