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

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   ObjectARX(C++) (http://www.dimcax.com/hust/forumdisplay.php?f=34)
-   -   【转帖】[arx]setxdata的问题,困扰很久了,大家帮忙看看,谢谢 (http://www.dimcax.com/hust/showthread.php?t=6428)

yang686526 2009-04-16 11:46 AM

【转帖】[arx]setxdata的问题,困扰很久了,大家帮忙看看,谢谢
 
[arx]setxdata的问题,困扰很久了,大家帮忙看看,谢谢
[arx]setxdata的问题,困扰很久了,大家帮忙看看,谢谢
我想把xdata附加到圆上,如下:
//---------------
acdbregapp(str);
resbuf *prb = acutnewrb(acdb::kdxfregappname);
prb->resval.rstring=new char[(strlen(str) + 1)];
strcpy(prb->resval.rstring, str);
prb->rbnext=dat.asres();
if(pcircle->setxdata(prb)!=acad::eok)
acutprintf("oops!faile to append the xdata.");
acutrelrb(prb);
pcircle->close();
//-----------------------------------------------------------
都能执行(能生成圆,能注册appname),除了setxdata一句外。为什么呢?
一切障碍都能逾越我……


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