几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】help--请教各位高手 (http://www.dimcax.com/hust/showthread.php?t=6253)

yang686526 2009-04-16 10:02 AM

【转帖】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.
不好意思,已经关闭了,只是没有传上来,谢谢


所有的时间均为北京时间。 现在的时间是 05:55 AM.