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

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

vs2005 for cad2007 中strcpy' : cannot convert parameter 1 from 'TCHAR ' to 'char *'<P>vs2005 for cad2007 中</P>
<P><BR>&nbsp;error C2664: 'strcpy' : cannot convert parameter 1 from 'TCHAR ' to 'char *'<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast<BR>怎么解决 </P>

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

<P>TCHAR是32位,char是位,改类型把</P>

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

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