TCollection_ExtendedString

Hi all,

I wanted to know how can I convert
TCollection_ExtendedString
to
std::string

Thank you !

Francesco Argese's picture

Hi all,

I'm searching the same function.

Have you resolved? Does anyone know if there is a convertion function?

I need it in order to retrieve a string from Formats function of OCAF Application class.

Thanks in advance,
Francesco Argese

Marco Nanni's picture

Hello All,

I usually us:

TCollection_ExtendedString format("MyFormat");
std::string s1 = TCollection_AsciiString(format).ToCString();

Cheers,

Marco.