vc2005中cstring.format怎么用?运行后报错.
BYTE *TempByte;
CString tempstring;
tempstring.Format("%0x",TempByte[0]);
//此处用双引号编译后显示:不能将参数 1 从“const char [4]”转换为“const wchar_t *”
//若写成单引号tempstring.Format('%0x',TempByte[0]);则在运行时报错.
Expression :strFormat.LoadStringW(nFormatID)
----------------------------------
我的目的是将TempByte[0]中的224转化为E0._itoa不能实现.现在自己写了一个转换函数.我想问的是,在VC2005中想用CSTRING的FORMAT功能,我上面的代码应该怎么写?谢谢.