紧急求救!关于DBX中的BlocktablRecord的迭代器问题,有代码
AcDbDatabase Db(Adesk::kFalse);<BR> Acad::ErrorStatus err;<BR> err = Db.readDwgFile((const char*)szProjDbPath,_SH_DENYNO,Adesk::kFalse);<BR> AcDbBlockTable *pBlockTable = NULL ;<BR> err = Db.getSymbolTable(pBlockTable, AcDb::kForRead);AcDbBlockTableRecord *pBlockTableRecord = NULL;<BR> err = pBlockTable->getAt(ACDB_MODEL_SPACE, pBlockTableRecord,<BR> AcDb::kForRead);<BR> pBlockTable->close();<BR> AcDbBlockTableRecordIterator* pIterator = NULL;<BR> err = pBlockTableRecord->newIterator(pIterator,true,false);
为何上述代码在arx工程中执行的不错,而在dbx中就挂了??告诉我是createfailed(最后一句) 请大侠帮个忙拉
ZD
ZD
页:
[1]