XP + VS2010下面 这段程序正常
char id[4097];
GetData(id);
而其中函数的定义是 GetData(string strValue){
}
把上面程序换到wince下面
报错,说参数类型不匹配
char型数组能直接转化成CString 类型吗?
------解决方案--------------------
wince是unicode的,需要自己手动转。
------解决方案--------------------
char型数组能直接转化成CString 类型,但不是 string
试试下面的代码:
TCHAR id[4097];
GetData(id);