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