I got this reply from wayne:
"you might check that protoolkit.h is being included as shown below.
it sounds like ProWstringToString is not working correctly.
let us know what you find.
wayne
Wide Strings
Pro/TOOLKIT, like Pro/ENGINEER, has to work in environments where
character strings use codes other than ASCII, and might use a bigger
character set than can be coded into the usual 1-byte char type. The most
important example of this is the Japanese KANJI character set.
For this reason, Pro/TOOLKIT uses the type wchar_t instead of char for all
characters and strings that may be visible to the Pro/ENGINEER user. This
includes all text messages, keyboard input, file names, and names of all
dimensions, parameters, and so on, used within a Pro/ENGINEER object.
Defining wchar_t
Although most platforms supported by Pro/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 Pro/ENGINEER. Therefore,
Pro/ENGINEER 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 Pro/TOOLKIT application is using the
same definition of wchar_t as Pro/ENGINEER on each platform your
application supports. To make this easier, Pro/TOOLKIT supplies the
include file pro_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 Pro/ENGINEER 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."
Ok, so I added the line #include <protoolkit.h> inside the extern "C"{ block and
recompiled. Same result. I removed it and added it in the main include
area, under <stdio.h> and recompiled. Same result.
I also got a reply from Gerry Champoux. I will reply to that one
shortly...