//#include <Windows.h>
#include <tchar.h>
#include <ObjBase.h>
#include <MsXml2.h>
#include <stdio.h>
void dprintf(char* format,...)
{
static char buf[1024];
va_list args;
va_start(args,format);
vsprintf_s(buf,format,args);
va_end(args);
OutputDebugStringA(buf);
printf("%s",buf);
}
#define HRCALL(a,errmsg) /
do{ /
hr = (a); /
if(FAILED(hr)) /
{ dprintf("%s:%d HRCALL Failed:%s/n 0x%.8x = %s/n", /
__FILE__,__LINE__,errmsg,hr,#a); /
g......
阅读全文