FFI Win32 api calls with LPTSTR args?
Cees de Groot
cg at cdegroot.com
Thu Jan 27 15:08:28 UTC 2005
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...
More information about the Squeak-dev
mailing list
|