Dragon_G 发表于 2006-8-2 14:00:00

vs2005 for cad2007 中strcpy' : cannot convert parameter 1 from 'TCHAR [20]' t

vs2005 for cad2007 中strcpy' : cannot convert parameter 1 from 'TCHAR ' to 'char *'vs2005 for cad2007 中

error C2664: 'strcpy' : cannot convert parameter 1 from 'TCHAR ' to 'char *'
      Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
怎么解决

shinjikun 发表于 2006-8-3 01:43:00

TCHAR是32位,char是位,改类型把

unionsoft 发表于 2006-8-4 09:32:00

因为ObjectArx2007是Unicode版本的,所以VC字符处理函数也应该用支持Unicode版本的,比如:
   _stprintf    替换   sprintf
   _tcscpy   替换   strcpy
页: [1]
查看完整版本: vs2005 for cad2007 中strcpy' : cannot convert parameter 1 from 'TCHAR [20]' t