I am trying to compile an existing ARX app for AutoCAD 2007. The last time it was compiled was for AutoCAD 2004 and it has worked in 2004, 2005, and 2006.
While trying to compile, I am getting a C2664 error in all the subroutines.
Any ideas ? Is there something I need to have in the includes or something needed to prevent this error ?
I am a novice ObjectArx app, so please don't assume I know much. I'm just trying to compile the code to work in 2007.
1>layermanip.cpp
1>c:\2007project\layermanip.cpp(63) : error C2664: 'acedGetVar' : cannot convert parameter 1 from 'const char [7]' to 'const ACHAR *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\2007project\layermanip.cpp(64) : error C2664: 'acedGetVar' : cannot convert parameter 1 from 'const char [8]' to 'const ACHAR *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\2007project\layermanip.cpp(65) : error C2664: 'acedGetVar' : cannot convert parameter 1 from 'const char [8]' to 'const ACHAR *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\2007project\layermanip.cpp(72) : error C2664: 'acutPrintf' : cannot convert parameter 1 from 'const char [73]' to 'const ACHAR *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\2007project\layermanip.cpp(75) : error C2440: '=' : cannot convert from 'char [5]' to 'ACHAR *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\2007project\layermanip.cpp(89) : error C2440: '=' : cannot convert from 'char *' to 'ACHAR *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\2007project\layermanip.cpp(90) : error C2664: 'acdbFail' : cannot convert parameter 1 from 'const char [31]' to 'const ACHAR *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\2007project\layermanip.cpp(94) : error C2664: 'strcpy' : cannot convert parameter 1 from 'ACHAR *' to 'char *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\2007project\layermanip.cpp(97) : error C2440: '=' : cannot convert from 'char [5]' to 'ACHAR *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\2007project\layermanip.cpp(99) : error C2664: 'acedSSGet' : cannot convert parameter 1 from 'const char [2]' to 'const ACHAR *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\2007project\layermanip.cpp(112) : error C2664: 'acutPrintf' : cannot convert parameter 1 from 'const char [21]' to 'const ACHAR *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\2007project\layermanip.cpp(136) : error C2664: 'acdbFail' : cannot convert parameter 1 from 'const char [28]' to 'const ACHAR *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\2007project\layermanip.cpp(140) : error C2664: 'acdbFail' : cannot convert parameter 1 from 'const char [36]' to 'const ACHAR *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\2007project\layermanip.cpp(143) : error C2440: '=' : cannot convert from 'char *' to 'ACHAR *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\2007project\layermanip.cpp(144) : error C2664: 'acdbFail' : cannot convert parameter 1 from 'const char [31]' to 'const ACHAR *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\2007project\layermanip.cpp(147) : error C2664: 'strcpy' : cannot convert parameter 1 from 'ACHAR *' to 'char *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\2007project\layermanip.cpp(149) : error C2664: 'acedSetVar' : cannot convert parameter 1 from 'const char [8]' to 'const ACHAR *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\2007project\layermanip.cpp(156) : error C2664: 'acdbFail' : cannot convert parameter 1 from 'const char [36]' to 'const ACHAR *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\2007project\layermanip.cpp(159) : error C2664: 'strlen' : cannot convert parameter 1 from 'ACHAR *' to 'const char *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\2007project\layermanip.cpp(160) : error C2664: 'acdbFail' : cannot convert parameter 1 from 'const char [31]' to 'const ACHAR *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\2007project\layermanip.cpp(163) : error C2664: 'strcpy' : cannot convert parameter 1 from 'ACHAR *' to 'char *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\2007project\layermanip.cpp(165) : error C2664: 'acedSetVar' : cannot convert parameter 1 from 'const char [7]' to 'const ACHAR *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\2007project\layermanip.cpp(180) : error C2664: 'acdbFail' : cannot convert parameter 1 from 'const char [36]' to 'const ACHAR *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\2007project\layermanip.cpp(185) : error C2440: '=' : cannot convert from 'char *' to 'ACHAR *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\2007project\layermanip.cpp(186) : error C2664: 'acdbFail' : cannot convert parameter 1 from 'const char [32]' to 'const ACHAR *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\2007project\layermanip.cpp(189) : error C2664: 'strcpy' : cannot convert parameter 1 from 'ACHAR *' to 'char *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\2007project\layermanip.cpp(192) : error C2440: '=' : cannot convert from 'char *' to 'ACHAR *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\2007project\layermanip.cpp(193) : error C2664: 'acdbFail' : cannot convert parameter 1 from 'const char [32]' to 'const ACHAR *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\2007project\layermanip.cpp(196) : error C2664: 'strcpy' : cannot convert parameter 1 from 'ACHAR *' to 'char *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\2007project\layermanip.cpp(199) : error C2440: '=' : cannot convert from 'char *' to 'ACHAR *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\2007project\layermanip.cpp(200) : error C2664: 'acdbFail' : cannot convert parameter 1 from 'const char [32]' to 'const ACHAR *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\2007project\layermanip.cpp(203) : error C2664: 'sprintf' : cannot convert parameter 1 from 'ACHAR *' to 'char *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\2007project\layermanip.cpp(207) : error C2664: 'acedSetVar' : cannot convert parameter 1 from 'const char [8]' to 'const ACHAR *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\2007project\layermanip.cpp(229) : error C2664: 'acdbFail' : cannot convert parameter 1 from 'const char [21]' to 'const ACHAR *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\2007project\layermanip.cpp(238) : error C2664: 'acdbFail' : cannot convert parameter 1 from 'const char [21]' to 'const ACHAR *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\2007project\layermanip.cpp(246) : error C2664: 'acdbFail' : cannot convert parameter 1 from 'const char [21]' to 'const ACHAR *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\2007project\layermanip.cpp(252) : error C2664: 'acdbFail' : cannot convert parameter 1 from 'const char [21]' to 'const ACHAR *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\2007project\layermanip.cpp(258) : error C2664: 'acdbFail' : cannot convert parameter 1 from 'const char [21]' to 'const ACHAR *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\2007project\layermanip.cpp(266) : error C2664: 'acdbFail' : cannot convert parameter 1 from 'const char [21]' to 'const ACHAR *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\2007project\layermanip.cpp(272) : error C2664: 'acdbFail' : cannot convert parameter 1 from 'const char [21]' to 'const ACHAR *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\2007project\layermanip.cpp(291) : error C2440: '=' : cannot convert from 'char [5]' to 'ACHAR *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\2007project\layermanip.cpp(305) : error C2664: 'acdbFail' : cannot convert parameter 1 from 'const char [26]' to 'const ACHAR *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\2007project\layermanip.cpp(313) : error C2664: 'acedSetVar' : cannot convert parameter 1 from 'const char [7]' to 'const ACHAR *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\2007project\layermanip.cpp(314) : error C2664: 'acedSetVar' : cannot convert parameter 1 from 'const char [8]' to 'const ACHAR *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\2007project\layermanip.cpp(324) : error C2664: 'acedGetVar' : cannot convert parameter 1 from 'const char [9]' to 'const ACHAR *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast