Article - CS410308

How to convert between std::string/char* string and wide character string which contains non-ASCII characters in order to use it for Creo Parametric TOOLKIT API without generating messy code?

Modified: 04-Feb-2024   


Applies To

  • Creo Parametric 7.0 to 10.0
  • Creo Parametric TOOLKIT

Description

  • How to convert between std::string/char* string and wide character string which contains non-ASCII characters in order to use it for Creo Parametric TOOLKIT API without generating messy code.
  • How to convert std::string string to a wide character string used by ProFileMdlnameOpen() without generating messy code after related deprecated APIs, such as ProNativestringToString(), ProLegacystringToWstring(), are removed in Creo Parametric 10.0.
This is a printer-friendly version of Article 410308 and may be out of date. For the latest version click CS410308