dbgprint_Mine 调试输出

void DbgPrintf_Mine(char*pszFormat,...)
{
#ifdef _DEBUG
    char szbufFormat[0x1000];
    char szBufFormat_Game[0x1008]="Game:";
    va_list argList;
    va_start(argList,pszFormat);//参数列表初始化
    //int i=va_arg(argList,int);
    //int j=va_arg(argList,int);
    //ar*s=va_arg(argList,char*);
    //int k=va_arg(argList,int);
    vsprintf_s(szbufFormat,pszFormat,argList);
    //printf("%d,%d,%s %d 
",i,j,s,k);
    //printf(szbufFormat);
    strcat_s(szBufFormat_Game,szbufFormat);
    OutputDebugStringA(szBufFormat_Game);
    va_end(argList);
#endif

}
原文地址:https://www.cnblogs.com/wumac/p/4200849.html