查看单个帖子
旧 2009-04-16, 10:02 AM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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.
不好意思,已经关闭了,只是没有传上来,谢谢
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)