[Prev][Next][Index][Thread]

Re: c-ffi question involving c-struct



Chris Double <chris@double.co.nz> writes:

> I get an error on the indicated line saying 'no next method'. Any
> ideas how I achieve this sort of thing?

BTW, this is the workaround I'm using:

let key-input = make(<LPINPUT*>, element-count: 3);
let key-input1 = make(<LPINPUT*>, 
     address: key-input.pointer-address);
let key-input2 = make(<LPINPUT*>, 
     address: \%+(key-input1.pointer-address, size-of(<INPUT>)));
let key-input3 = make(<LPINPUT*>, 
     address: \%+(key-input2.pointer-address, size-of(<INPUT>)));

I'm sure the method using key-input[0], etc is supposed to work
according to the documentation though.

Chris.
-- 
http://www.double.co.nz/dylan




References: