Carlos,
>cString is in charset ANSI
Are you sure about this? Is this is a literal string or does it come from a
data source or from user input?
>Please, can someone say to me why cString is rendered as charset OEM?
What is your application's CharSet setting? The string will be rendered
based on the CharSet setting and might be subject to implicit (automatic)
conversion. You can RTFM under "SET CHARSET" for details.
>What Can I do for to render it in charset ANSI?
Depending on your application's setting and the source and target of the
string, you could probably use: "Set CharSet to ANSI" before you print, or
you could use: "GraStringAt(oPrintPs, aStrinPos, ConvToAnsiCP(cString))"
if your application needs to use "Set CharSet to OEM".
Hope that helps,
Andreas
Andreas Gehrs-Pahl
Absolute Software, LLC
phone: (989) 723-9927
email: Andreas.GP@Charter.net
web: http://www.Aerospace-History.net