2009年4月6日 星期一

OutputDebugStringW

如果遇到這個型態,其它的都要改成W型態,例子:

wchar_t ErrMsg[MAX_PATH];

wsprintf(ErrMsg, L"LTPTime_ CGGOpenFromFile::_updateLocalFileItem FOR loop time usage= %d \n", dTickCountB - dTickCountA);

OutputDebugString(ErrMsg);

//////////

char DebugString[256];
sprintf(DebugString,"[DTCP]Condition meet to set ICT to %d\n",IctToApply);
OutputDebugStringA(DebugString);

沒有留言: