高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】[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一句外。为什么呢?
一切障碍都能逾越我……
|