孤云 发表于 2008-7-9 16:32:00

[求助]扩展记录老是出错

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