calling C function array pointer
- Posted by rlistas <rlistas at gmail.com> Jul 15, 2007
- 542 views
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