[Gambas-user] Read array of string return from external libraries function
Benoît Minisini
gambas at ...1...
Wed Mar 30 01:14:46 CEST 2011
> Hi,
>
> I have an EXTERN function which returns an array of strings (char**). How
> to get this array?
>
> I just can only get the first string:
> EXTERN theFunction(params AS ...) As Pointer
> .....
> Dim p as Pointer, s as String
>
> p = theFunction(...)
> s = String@(Pointer@(p))
>
> What to do next?
> Thank you.
s = String@(Pointer@(p + SizeOf(gb.Pointer))
s = String@(Pointer@(p + SizeOf(gb.Pointer) * 2)
s = String@(Pointer@(p + SizeOf(gb.Pointer) * 3)
...
--
Benoît Minisini
More information about the User
mailing list