Can't read IGES file with cyrillic simbols in name ot path.

Hi,

I try to read IGES file with cyrillic simbols in name or path. Project was build under windows with multy-bytes coding.
Whay I am doing wrong?

bool IgesIO::ReadShape (CString FileName )
{
try{
;

if (m_Reader.ReadFile(FileName) != IFSelect_RetDone)
return false;

gkv311 n's picture

In case if you are using CStringfrom MFC - have you checked string conversion code from MFC sample coming with framework?

TCollection_AsciiString aFileName ((const wchar_t* )dlg.GetPathName());
Standard_Integer status = ReadIGES (aFileName.ToCString(), aSequence);
Alexander Alexanov's picture

Strange, but it is not work for me.

gkv311 n's picture

Make sure you are using UNICODE version of MFC, not legacy one. And check if MFC sample coming with OCCT is able to open the same file.