ads_name entName; ads_point pt; AcDbObjectId id; acedEntSel("选择实体:", entName, pt); acdbGetObjectId(id, entName); AcDbEntityPointer entPtr(id, AcDb::kForWrite); entPtr->createExtensionDictionary(); id = entPtr->extensionDictionary(); AcDbDictionaryPointer dictPtr(id, AcDb::kForWrite); AcDbXrecord* pXrec = new AcDbXrecord; dictPtr->setAt("AA", pXrec, id); struct resbuf* pRb = acutBuildList(RTSTR, "abc", RTNONE); pXrec->setFromRbChain(*pRb); pXrec->close(); acutRelRb(pRb); 为一个实体添加扩展记录,老是在 pXrec->setFromRbChain(*pRb); 这一句出错.. 说什么C0000005错误.. 帮我看看啊..谢了.. |