FFI wide-character type?
John M McIntosh
johnmci at smalltalkconsulting.com
Fri Aug 4 01:46:03 UTC 2006
Ok, assuming you are using characters ascii 0-127 you could say
>> wideStringMangled := string convertFromWithConverter:
>> (Latin1TextConverter new).
If you are using characters 128-255 then you do need to decide what
character set they are...
On 3-Aug-06, at 3:38 PM, Ron Teitelbaum wrote:
> John,
>
> Thanks for the suggestion.
>
> What I have is a smalltalk string. I need to send it to the external
> function as a widestring. I tried to find a smalltalk string that
> I could
> try sending as char* by trying this:
>
> TextConverter allSubclasses collect: [:aConverter |
> 'MY' convertFromWithConverter: aConverter new
> ]
>
> I don't get anything different then a regular smalltalk string.
>
> So that didn't work.
>
> Do you have any other suggestions?
--
========================================================================
===
John M. McIntosh <johnmci at smalltalkconsulting.com>
Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com
========================================================================
===
More information about the Squeak-dev
mailing list
|