User's Guide > Fundamentals > Defining wchar_t
Defining wchar_t
 
Although most platforms supported by Creo TOOLKIT provide a definition of wchar_t in a system include file, not all do. Those that do use definitions of different lengths; some provide definitions that are not suitable for all the character codes supported by Creo Parametric. Therefore, Creo Parametric takes considerable care to make sure it uses a suitable definition of wchar_t on each supported platform.
It is essential to make sure your Creo TOOLKIT application is using the same definition of wchar_t as Creo Parametric on each platform your application supports. To make this easier, Creo TOOLKIT supplies the include filepro_wchar_t.h. This file ensures that, if a definition of wchar_t.h has not already been made in an earlier include file, one is provided that is consistent with the Creo Parametric definition of the type. Because this file is included by the file ProToolkit.h, you should include ProToolkit.h as the very first include file in each source file.
這是否有幫助?