--- In [email protected], "nospam0123456us" <nospam012345...@...> wrote:
>
> 
> --- In [email protected], "Sheri" <sherip99@> wrote:
> > <http://tech.groups.yahoo.com/group/power-pro/message/33318>
> >
> > I guess you would need to be using the dll plugin to get a pointer to
> a wstring instead of a string. Then possibly the unicode plugin or
> another API could be used to translate the widestring to ascii.
> >
> > Regards,
> > Sheri
> >
> Thx for the hints sheri, bruce.
> 
> I came up with this, it is not perfect ... but it seems to work :
> i just have to map back to unicode string using
> unicode.from_binary and back to ascii ...

That's great! Apparently it is necessary to use go through binary. Glad you 
figured it out.

BTW, as written you've got a bunch of global variables that should be local 
(except as written, binaryVar would need to be static or localcopy'd). Also one 
of your variables, bsize, is neither declared nor assigned a value.

There is a helpful pcf configuration setting on the "Other" tab of Advanced 
Setup, "variables must be declared before using". When that setting is enabled, 
you get an alert if you forget to scope a variable.

> 
> // ps i tried to use binary.empty to get an empty buffer with
> maxsize allocated but dll.get_pointer do not succeed ! 

An empty service just got removed from the unicode plugin because it was 
useless; the one in binary is likely similar.

Regards,
Sheri

Reply via email to