笑面战佛 发表于 2006-4-9 22:52:00

求救,dwginfields()读入数据出错

<P>我有一个字符数组数据成员需要读入,代码如下:</P>
<P>Acad::ErrorStatus dkfytObj::dwgInFields(AcDbDwgFiler* pFiler)<BR>{<BR>&nbsp;assertWriteEnabled();<BR>&nbsp;Acad::ErrorStatus es;</P>
<P>&nbsp;// Call dwgInFields from AcDbEntity<BR>&nbsp;if ((es = AcDbEntity::dwgInFields(pFiler)) != Acad::eOk) {<BR>&nbsp;&nbsp;return es;<BR>&nbsp;}</P>
<P>&nbsp;// Read version number.<BR>&nbsp;Adesk::UInt16 version;<BR>&nbsp;pFiler-&gt;readItem(&amp;version);<BR>&nbsp;if (version &gt; VERSION_DKFYTOBJ)<BR>&nbsp;&nbsp;return Acad::eMakeMeProxy;</P>
<P>&nbsp;// Read the data members.<BR>&nbsp;switch (version)<BR>&nbsp;{<BR>&nbsp;case (1):<BR>&nbsp;&nbsp;pFiler-&gt;readItem(&amp;m_ipoint);<BR>&nbsp;&nbsp;<FONT color=#f73809>pFiler-&gt;readItem(inStr);<BR></FONT>&nbsp;&nbsp;// TODO: here you can file datamembers not<BR>&nbsp;&nbsp;//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; created by the ObjectARX Add-In.</P>
<P>&nbsp;&nbsp;break;<BR>&nbsp;}</P>
<P><BR>&nbsp;return pFiler-&gt;filerStatus();<BR>}</P>
<P>在打开图形之前预览的时候发现图形是正常的,但是打开图形后读进来的数据是一串路径字符,不知道是什么原因</P>
页: [1]
查看完整版本: 求救,dwginfields()读入数据出错