几何尺寸与公差论坛------致力于产品几何量公差标准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-18, 06:27 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】画圆实例中遇到的问题

画圆实例中遇到的问题
画圆实例中遇到的问题
版主,看一下,错误如下
--------------------configuration: createents - win32 debug--------------------
compiling...
createent.cpp
compiling stl header files in release mode.
e:\createents\createent.cpp(87) : error c2352: 'ccalculation::middlepoint' : illegal call of non-static member function
e:\createents\calculation.h(17) : see declaration of 'middlepoint'
e:\createents\createent.cpp(98) : error c2079: 'gearc' uses undefined class 'acgecircarc2d'
e:\createents\createent.cpp(98) : error c2078: too many initializers
e:\createents\createent.cpp(98) : error c2440: 'initializing' : cannot convert from 'class acgepoint2d' to 'int'
no user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
e:\createents\createent.cpp(99) : error c2228: left of '.center' must have class/struct/union type
e:\createents\createent.cpp(99) : error c2228: left of '.x' must have class/struct/union type
e:\createents\createent.cpp(99) : error c2228: left of '.center' must have class/struct/union type
e:\createents\createent.cpp(99) : error c2228: left of '.y' must have class/struct/union type
e:\createents\createent.cpp(100) : error c2228: left of '.radius' must have class/struct/union type
createentscommands.cpp
compiling stl header files in release mode.
e:\createents\createentscommands.cpp(29) : error c2352: 'ccreateent::createcircle' : illegal call of non-static member function
e:\createents\createent.h(23) : see declaration of 'createcircle'
e:\createents\createentscommands.cpp(34) : error c2352: 'ccreateent::createcircle' : illegal call of non-static member function
e:\createents\createent.h(24) : see declaration of 'createcircle'
generating code...
error executing cl.exe.
zffcreateents.arx - 11 error(s), 0 warning(s)
我acgecircarc2d类里怎么没有gearc()函数?
acgecircarc3d类有一个acgecircarc3d(
const acgepoint3d& startpoint,
const acgepoint3d& pnt,
const acgepoint3d& endpoint);
startpointinput start point of arc
pntinput point on arc
endpointinput endpoint of arc
constructs an arc through three points. none of the three points may be coincindent and they may not be colinear. this constructor always constructs a bounded arc and cannot be used to construct a full circle.
帮忙调试一下

下载次数:14
9-2-6 10:10 am
有做过这个实例的吗?
配置arx环境,还有,你干嘛生成exe?
-=finale=-
楼上的高手
我的arx系统配置没什么问题,
前面的实例运行都好好的
希望能看一下什么原因
希望能在百忙之中看下
感激不尽
如何调试?
compiling stl header files in release mode.
e:\createents\createent.cpp(87) : error c2352: 'ccalculation::middlepoint' : illegal call of non-static member function
这里说非法调用非静态函数,在createent.h那里,需要这样子static acdbobjectid ccreateent::createcircle(acgepoint2d pt1, acgepoint2d pt2);
e:\createents\calculation.h(17) : see declaration of 'middlepoint'
这个同上,没有加static
e:\createents\createent.cpp(98) : error c2079: 'gearc' uses undefined class 'acgecircarc2d'
这个是未定义类acgecircarc2d,只要配置好环境,这个不会错
e:\createents\createent.cpp(98) : error c2078: too many initializers
太多初始化因子,考虑到上个错误,应该是类的问题
e:\createents\createent.cpp(98) : error c2440: 'initializing' : cannot convert from 'class acgepoint2d' to 'int'
转换错误,参考如上
no user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
e:\createents\createent.cpp(99) : error c2228: left of '.center' must have class/struct/union type .center必须为类,结构,或结合体,说明.center未在头文件中定义
e:\createents\createent.cpp(99) : error c2228: left of '.x' must have class/struct/union type同上
e:\createents\createent.cpp(99) : error c2228: left of '.center' must have class/struct/union type同上
e:\createents\createent.cpp(99) : error c2228: left of '.y' must have class/struct/union type
e:\createents\createent.cpp(100) : error c2228: left of '.radius' must have class/struct/union type
createentscommands.cpp
compiling stl header files in release mode.
e:\createents\createentscommands.cpp(29) : error c2352: 'ccreateent::createcircle' : illegal call of non-static member function
头文件没有加static
e:\createents\createent.h(23) : see declaration of 'createcircle'
e:\createents\createentscommands.cpp(34) : error c2352: 'ccreateent::createcircle' : illegal call of non-static member function
同上
e:\createents\createent.h(24) : see declaration of 'createcircle'
generating code...
error executing cl.exe.
结语:注意规格,小心处理
-=finale=-
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
回复


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

高级搜索
显示模式

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

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



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


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