Howdy,
If you search the archives, and google around, you'll see that this 
specific issue is pretty well covered. C arrays are not RB arrays, their 
internal structure isn't reliably similar. So, as Norman already 
mentioned, you need to use a memory block.

Good luck,
Fargo

Tim Jones wrote:
> HI folks, I've got a library routine that I'm trying to access that  
> requires a pointer to an array of integers.  I've tried to call it with:
>
> Dim thePipe(2) As Integer
>
> Soft Declare Function pipe Lib "LibC" (ByRef thePipe) As Integer
>
> However, calls to pipe are failing with EFAULT or some undocumented  
> value.
>
> Any pointers on how to pass a 2 member, modifiable array in this mode?
>
> Thanks,
>
> Tim
> --
> Tim Jones
> [EMAIL PROTECTED]
>
> _______________________________________________
>
>   
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to