LPSTR lpValue1;
LPCTSTR lpValue2;
strcpy(lpValue,pVal);在DEBUG下这句话没问题,在UNICODE下编译通不过
error C2664: 'strcpy' : cannot convert parameter 2 from 'const unsigned short *' to 'const char *'请问要怎么改?
LPCTSTR lpValue2;
strcpy(lpValue,pVal);在DEBUG下这句话没问题,在UNICODE下编译通不过
error C2664: 'strcpy' : cannot convert parameter 2 from 'const unsigned short *' to 'const char *'请问要怎么改?
LPCTSTR lpValue2;
lstrcpy(lpValue,pVal);
LPCTSTR lpValue2;
strcpy(lpValue,pVal);
========================================
lpValue是啥米类型?
pVal又是啥米类型呢?
要都是LPSTR的用strcpy()没问题的
要都是LPWSTR的用wcscpy()
要都是LPTSTR的就用_tcscpy()还有,
在DEBUG下这句话没问题,在UNICODE下编译通不过
==========================================
楼主是要说UNICODE下的DEBUG么?还是什么???
UNICODE 和 ACSII对应
DEBUG 和 Release对应
“在DEBUG下这句话没问题,在UNICODE下编译通不过”是怎么个意思呢?