Function ProStringToWstring
Description
Converts a multibyte character string to a wide string.
NOTES:
This function accepts only strings only in the active encoding of the Creo Parametric TOOLKIT application. Strings from other encodings may not be properly converted.
This function does not change the encoding of the string during the conversion.
This function replicates the performance of strtows, which exists on some operating systems.
Synopsis
#include <ProUtil.h>
ProStringToWstring
(
wchar_t* wstr
/* (Out)
The buffer to contain the widestring. The caller must declare or allocate enough memory for this argument.
*/
char* str
/* (In)
The character string to convert, terminated by NULL character
*/
)
Returns
The wide string
Sample Code References
User Guide References
¿Fue esto útil?