- UID
- 58856
- 积分
- 0
- 精华
- 贡献
-
- 威望
-
- 活跃度
-
- D豆
-
- 在线时间
- 小时
- 注册时间
- 2003-6-16
- 最后登录
- 1970-1-1
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
选择扩展数据为 short layerhao=1 应用程序名为textname的TEXT实体 为何不成功
但选择扩展数据应用程序名为textname的TEXT实体则成功,不知道为何?
我用ObjectARX docsamp的例子的printXdata()打印得到“(1001 textname)(1070 1)”
struct resbuf eb,eb1,eb2,eb3;
ads_name ssname,ss;
char sbuf1[10],sbuf2[10];
eb.restype=0;
strcpy(sbuf1,"TEXT");
eb.resval.rstring=sbuf1;
eb.rbnext=&eb1;
eb1.restype=-3;
eb1.rbnext=&eb2;
eb2.restype=1001;
strcpy(sbuf2,"textname");
eb2.resval.rstring=sbuf2;
eb2.rbnext=&eb3;
eb3.restype=1070;
eb3.resval.rint=layerhao;
eb3.rbnext=NULL;
acedSSGet("X", NULL, NULL, &eb, ssname);
long lenSS,idx;
int rc;
rc = acedSSLength(ssname, &lenSS); // Note: we pass the address of lenSS
if(rc != RTNORM)
{
acutPrintf("\n **select false");
return;
} |
|