For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings

 

Need to speed up your development?
Have a look at our:

Samples & Tools

 

Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

TCollection_ExtendedString

Anonymous's picture
Forums: 

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.