查看单个帖子
旧 2009-04-14, 03:02 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】achar的问题

achar的问题
achar的问题
第一次用arx
环境 arx7 vs5
我将 vs 3 下的代码复制到 vs05 下出现如下的问题:
acutprintf("\nhello world!");
出现如下错误:
cannot convert parameter 1 from 'const char [20]' to 'const achar *'
这样改也不行:
acutprintf (_t("\nhello world!"));
出现这样的错误: '_t': identifier not found
怎么解决?? 谢谢
按道理acutprintf (_t("\nhello world!")); 没有问题,你看看你的头文件是否包含了定义没有,我的程序里有大量的_t宏,没有问题
我就郁闷, 没加这个头文件“tchar.h”
晕啊
把_t换成l试试
acutprintf (_t("\nhello world!"));改为
acutprintf (l("\nhello world!"));
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)