void __cdecl OutputDebugStringF(const char* format ...){
va_list vlArgs;
char* stringBuffer=(char*)GlobalAlloc(GPTR,4096);
va_start(vl_Args,format);
_vsnprintf(stringBuffer,4096,-1,format,vlArgs);
va_end(vlArgs);
strcat(stringBuffer,"\n");
OutputDebugStringA(stringBuffer);
GlobalFree(stringBuffer);
return;
}
时间: 2024-11-05 09:14:17