vc6.0将编码格式改为unicode,就出现各种异常,大神进来看下吧
vc6.0将编码格式改为unicode,就出现各种错误,大神进来看下吧
'fopen' : cannot convert parameter 1 from 'class CString' to 'const char *'
应该怎么修改啊
------解决方案--------------------
fopen 用_wfopen 代替就行
------解决方案--------------------
_tfopen
------解决方案--------------------
'char ' 这是一个字节 to 'const unsigned short ' 这是2个字节
------解决方案--------------------
'_tstof' ?
_tcs.... ?
------解决方案--------------------
#define _tstof atof
两者互通的,然后查了下atof
Routine(s) Required header
atof <math.h> and <stdlib.h>
------解决方案--------------------
加 <stdlib.h>
CFileDialog AA(true,_T("TXT"),_T("*.TXT"));
FILE *fp;
fp=fopen(AA.GetPathName(),_T("rb"));
'fopen' : cannot convert parameter 1 from 'class CString' to 'const char *'
应该怎么修改啊
------解决方案--------------------
fopen 用_wfopen 代替就行
------解决方案--------------------
_tfopen
------解决方案--------------------
'char ' 这是一个字节 to 'const unsigned short ' 这是2个字节
------解决方案--------------------
'_tstof' ?
_tcs.... ?
------解决方案--------------------
#define _tstof atof
两者互通的,然后查了下atof
Routine(s) Required header
atof <math.h> and <stdlib.h>
------解决方案--------------------
加 <stdlib.h>