| |
2009-05-05, 09:34 AM | #1 |
高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】error c2664
error c2664
error c2664 hi, i had made an odvectorizeex application a long time ago. now i need to change that again. i have taken the sources again and tried to recompile it with vc 2005. i am getting following errors: i will be highly grateful if you can help me out in this problem. thanks and regards, michael eisfeld 1>------ build started: project: odvectorize, configuration: release win32 ------ 1>compiling... 1>gidumperimpl.cpp 1>d:\odvectorize\odvectorize\odvectorize\gidumper. h(32) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char [16]' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\gidumperimpl.cpp(36) : error c2664: 'fprintf' : cannot convert parameter 2 from 'const odchar *' to 'const char *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\gidumperimpl.cpp(37) : error c2664: 'fprintf' : cannot convert parameter 2 from 'const odchar *' to 'const char *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\gidumperimpl.cpp(48) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char [16]' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\gidumperimpl.cpp(68) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char [15]' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\gidumperimpl.cpp(72) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char [35]' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\gidumperimpl.cpp(77) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char [14]' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\gidumperimpl.cpp(80) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char [13]' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\gidumperimpl.cpp(85) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char [35]' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\gidumperimpl.cpp(89) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char [24]' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\gidumperimpl.cpp(94) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char [36]' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\gidumperimpl.cpp(108) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char [5]' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\gidumperimpl.cpp(121) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char *' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\gidumperimpl.cpp(127) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char [13]' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\gidumperimpl.cpp(143) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char [5]' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\gidumperimpl.cpp(156) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char *' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\gidumperimpl.cpp(161) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char [5]' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\gidumperimpl.cpp(174) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char *' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\gidumperimpl.cpp(179) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char [5]' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\gidumperimpl.cpp(219) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char [23]' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\gidumperimpl.cpp(224) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char [18]' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>giconveyorgeometrydumper.cpp 1>d:\odvectorize\odvectorize\odvectorize\gidumper. h(32) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char [16]' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\giconveyorgeometrydumper.cpp(56) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char [24]' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\giconveyorgeometrydumper.cpp(69) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char [35]' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\giconveyorgeometrydumper.cpp(136) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char [37]' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\giconveyorgeometrydumper.cpp(139) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char [11]' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\giconveyorgeometrydumper.cpp(180) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char [54]' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\giconveyorgeometrydumper.cpp(183) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char [51]' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\giconveyorgeometrydumper.cpp(214) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char [79]' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\giconveyorgeometrydumper.cpp(217) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char [21]' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\giconveyorgeometrydumper.cpp(241) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char [27]' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\giconveyorgeometrydumper.cpp(247) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char [10]' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\giconveyorgeometrydumper.cpp(252) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char [31]' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\giconveyorgeometrydumper.cpp(286) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char [24]' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\giconveyorgeometrydumper.cpp(290) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char [20]' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\giconveyorgeometrydumper.cpp(300) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char [26]' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\giconveyorgeometrydumper.cpp(304) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char [17]' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\giconveyorgeometrydumper.cpp(356) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char [30]' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\giconveyorgeometrydumper.cpp(360) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char [13]' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\giconveyorgeometrydumper.cpp(363) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char [18]' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\giconveyorgeometrydumper.cpp(366) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char [15]' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\giconveyorgeometrydumper.cpp(393) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char [31]' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\giconveyorgeometrydumper.cpp(397) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char [13]' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\giconveyorgeometrydumper.cpp(400) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char [19]' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\giconveyorgeometrydumper.cpp(423) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char [52]' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\giconveyorgeometrydumper.cpp(445) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char [50]' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\giconveyorgeometrydumper.cpp(465) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char [39]' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\giconveyorgeometrydumper.cpp(468) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char [31]' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\giconveyorgeometrydumper.cpp(471) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char [12]' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\giconveyorgeometrydumper.cpp(476) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char [8]' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\giconveyorgeometrydumper.cpp(480) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char [20]' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\giconveyorgeometrydumper.cpp(485) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char [19]' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\giconveyorgeometrydumper.cpp(489) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char [17]' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\giconveyorgeometrydumper.cpp(495) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char [20]' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\giconveyorgeometrydumper.cpp(501) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char [14]' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\giconveyorgeometrydumper.cpp(505) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char [8]' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\giconveyorgeometrydumper.cpp(533) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char [43]' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\giconveyorgeometrydumper.cpp(536) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char [21]' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\giconveyorgeometrydumper.cpp(540) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char [13]' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\giconveyorgeometrydumper.cpp(544) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char [13]' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\giconveyorgeometrydumper.cpp(548) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char [23]' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\giconveyorgeometrydumper.cpp(576) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char [46]' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\giconveyorgeometrydumper.cpp(580) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char [13]' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\giconveyorgeometrydumper.cpp(584) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char [47]' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\giconveyorgeometrydumper.cpp(587) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char [22]' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\giconveyorgeometrydumper.cpp(592) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char [15]' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\giconveyorgeometrydumper.cpp(609) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char [43]' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\giconveyorgeometrydumper.cpp(613) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char [13]' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\giconveyorgeometrydumper.cpp(617) : error c2664: 'odstring &odstring::format(const odchar *,...)' : cannot convert parameter 1 from 'const char [35]' to 'const odchar *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\giconveyorgeometrydumper.cpp(638) : warning c4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data 1>.\giconveyorgeometrydumper.cpp(688) : warning c4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data 1>.\giconveyorgeometrydumper.cpp(742) : warning c4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data 1>.\giconveyorgeometrydumper.cpp(769) : error c2664: 'strlen' : cannot convert parameter 1 from 'const odchar *' to 'const char *' 1> types pointed to are unrelated; conversion requires reinterpret_cast, c-style cast or function-style cast 1>.\giconveyorgeometrydumper.cpp(771) : error c2664: 'strlen' : cannot convert parameter 1 from 'const odchar *' to 'const char which project file are you using? projectfiles\win32\msvc8\examples\odvectorizeex\od vectorizeex_dll.vcproj ? vladimir hi, i have made my own project. i compared the settings of my project and projectfiles\win32\msvc8\examples\odvectorizeex\od vectorizeex_dll.vcproj ? in vc2005. all settings are same but still i get errors in my project but when i compile the projectfiles\win32\msvc8\examples\odvectorizeex\od vectorizeex_dll.vcproj project then there is no error except one linker error. please tell me what might be wrong. michael. probably "wchar_t" settings are different. (odvectorizeex sample is not adapted to be compiled with both /zc:wchar_t settings) vladimir |
GDT自动化论坛(仅游客可见) |