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