几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量  


返回   几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 » 仿射空间:CAX软件开发(三)二次开发与程序设计 » CAD二次开发 » AutoCAD二次开发 » DirectDWG
用户名
密码
注册 帮助 会员 日历 银行 搜索 今日新帖 标记论坛为已读


回复
 
主题工具 搜索本主题 显示模式
旧 2009-05-05, 09:34 AM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
回复


主题工具 搜索本主题
搜索本主题:

高级搜索
显示模式

发帖规则
不可以发表新主题
不可以回复主题
不可以上传附件
不可以编辑您的帖子

vB 代码开启
[IMG]代码开启
HTML代码关闭



所有的时间均为北京时间。 现在的时间是 03:05 AM.


于2004年创办,几何尺寸与公差论坛"致力于产品几何量公差标准GD&T | GPS研究/CAD设计/CAM加工/CMM测量"。免责声明:论坛严禁发布色情反动言论及有关违反国家法律法规内容!情节严重者提供其IP,并配合相关部门进行严厉查处,若內容有涉及侵权,请立即联系我们QQ:44671734。注:此论坛须管理员验证方可发帖。
沪ICP备06057009号-2
更多