FFI Win32 api calls with LPTSTR args?
Bert Freudenberg
bert at impara.de
Thu Jan 27 22:38:49 UTC 2005
Am 27.01.2005 um 16:08 schrieb Cees de Groot:
> On Thu, 27 Jan 2005 00:35:27 +0100, Bert Freudenberg <bert at impara.de>
> wrote:
>
>> Hmm, I'm not sure if you can use a String as buffer here - if I am
>> not mistaken you can only pass in ByteArrays and ExternalAddresses
>> where a pointer is required.
>>
> Yup. In the meantime I found out how to pass long* and byte* arguments
> ;).
>
>>> I get the error message 'Only ExternalFunctions can be called' when
>>> I try this - does this means that my arguments are messed up or that
>>> this <apicall: > thingie is not correct?
>>
>> Not sure about that ...
>>
> Funny - it happens every time when I want to test stuff around it with
> the debugger. When I just run through it, it finds and executes the
> call...
Not funny at all - is this reproducable? It would mean the simulator is
broken. I'm pretty sure that didn't happen to me before (but then, I'm
usually not developing on Windows).
- Bert -
More information about the Squeak-dev
mailing list
|