calling C function array pointer

new topic     » topic index » view thread      » older message » newer message

Hi,

How do I call a C function in a dll that asks an argument
like *buffer ( a pointer to an array) ?

(from Pcomm.ew)
	--(int port, char *buf, int len)
global function sio_read(integer port, integer lpRBuf, integer len)
		return c_func(sio_read_,{port,lpRBuf,len})
end function


I try :

sequence buffer
buffer={'0','0'}

sio_read(1,buffer[1],2)
>error -8

and sio_read(1,buffer,2)  
>incorrect type for lpRBuf.


Thanks

Rubens

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu