高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】help--请教各位高手
help--请教各位高手
help--请教各位高手
代码如下:
acdbdatabase *pcurdb = null;
pcurdb = acdbhostapplicationservices()->workingdatabase();
pcurdb->getlayertable(plyrtable, acdb::kforwrite);
// check to see if the layer name exists
// note how we can change the open mode
// of the layer table from acdb::kforread
// to acdb::kforwrite
// plyrtable->upgradeopen();
plyrtblrecord = new acdblayertablerecord;
plyrtblrecord->setname("answer");
plyrtblrecord->setcolor(color);
plyrtblrecord->setlinetypeobjectid(ltypeid);
plyrtable->add(plyrtblrecord);
}
当执行到 plyrtable->add(plyrtblrecord);时, cad中总是出现未处理异常。。。(access violation reading 0xcccccccc),地址5ef287ch。麻烦各位大侠帮忙解决一下
qq:371637932
plyrtable还没有关闭
change your life style.
不好意思,已经关闭了,只是没有传上来,谢谢
|