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


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


回复
 
主题工具 搜索本主题 显示模式
旧 2009-04-19, 03:37 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】(求助)arxheaders.h 头文件使用

(求助)arxheaders.h 头文件使用
(求助)arxheaders.h 头文件使用
初学arx 碰到了点问题
描述如下:
依照arxsdk 08 里的教程例子 setp01(objectarx 8\arxlabs\objectarxlabs.chm)
我们可以得到一个使用win32项目下的一个arx控件,在该控件里,引用了诸如“ace.h”等标准的cad sdk 头文件。
为了代码的优化,我把arxheaders.h 加入到stdafx.h中 ,以使的开发过程中不必依次重复书写各个头文件,但是编译时却遇到如下错误:
主要是说一些变量未定义。variant
很奇怪。
c:\objectarx 8\inc\acvalue.h(91) : error c4430: missing type specifier - int assumed. note: c++ does not support default-int
1>c:\objectarx 8\inc\acvalue.h(91) : error c2143: syntax error : missing ',' before '&'
1>c:\objectarx 8\inc\acvalue.h(111) : error c2059: syntax error : '<cv-qualifer>'
1>c:\objectarx 8\inc\acvalue.h(111) : error c2238: unexpected token(s) preceding ';'
1>c:\objectarx 8\inc\acvalue.h(146) : error c4430: missing type specifier - int assumed. note: c++ does not support default-int
1>c:\objectarx 8\inc\acvalue.h(146) : error c2143: syntax error : missing ',' before '&'
1>c:\objectarx 8\inc\acvalue.h(169) : error c2061: syntax error : identifier 'variant'
1>c:\objectarx 8\inc\acvalue.h(192) : error c4430: missing type specifier - int assumed. note: c++ does not support default-int
1>c:\objectarx 8\inc\acvalue.h(192) : error c2143: syntax error : missing ',' before '&'
1>c:\objectarx 8\inc\acfield.h(185) : error c2059: syntax error : '<cv-qualifer>'
1>c:\objectarx 8\inc\acfield.h(185) : error c2238: unexpected token(s) preceding ';'
1>c:\objectarx 8\inc\acprofile.h(100) : error c2061: syntax error : identifier 'iunknown'
1>c:\objectarx 8\inc\acprofile.h(102) : error c2061: syntax error : identifier 'iunknown'
1>c:\objectarx 8\inc\acprofile.h(104) : error c2061: syntax error : identifier 'iunknown'
1>c:\objectarx 8\inc\acpublishuireactors.h(154) : error c2061: syntax error : identifier 'iunknown'
1>c:\objectarx 8\inc\acpublishuireactors.h(175) : error c2065: 'iunknown' : undeclared identifier
1>c:\objectarx 8\inc\acpublishuireactors.h(175) : error c2065: 'punk' : undeclared identifier
1>c:\objectarx 8\inc\acpublishuireactors.h(176) : error c2065: 'pinfo' : undeclared identifier
1>c:\objectarx 8\inc\acpublishuireactors.h(176) : error c2275: 'acpublishuireactorinfo' : illegal use of this type as an expression
1> c:\objectarx 8\inc\acpublishuireactors.h(45) : see declaration of 'acpublishuireactorinfo'
1>c:\objectarx 8\inc\acpublishuireactors.h(177) : error c2448: 'acpublishuireactor:ninitpublishoptionsdialog' : function-style initializer appears to be a function definition
我参照了使用wizard 工程生成的自动代码,它在 头文件stdafx如此使用却是编译通过的, 费解。
由于初学没经验希望大大们出手指点迷津;
环境: vs 5。net; sdk objectarx 8
enviroment 里面include 和lib 也以添加。
[ 本帖最后由 tthq 于 8-8-3 08:24 pm 编辑 ]
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
回复


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

高级搜索
显示模式

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

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



所有的时间均为北京时间。 现在的时间是 11:57 PM.


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