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