[Gambas-user] Memory Stream Help

Benoît Minisini gambas at ...1...
Mon Nov 21 23:54:05 CET 2011


Le 20/11/2011 05:42, Randall Morgan a écrit :
> Hi All,
>
> Can someone give me a sample of using memory streams to read and write data
> to/from memory.
>
> I am needing to read data from a C structure allocated by the external
> library (tidy) with the pointer returned to Gambas.
>
> I read the page on external libraries many times before learning the Gambas
> 3 does not allow the use of READ on pointers any longer.
> This should be updated on the how to use external libraries page in the
> section "More on Pointers"
>
> Still, with the given documentation for Gambas3 I am unable to get my
> program to compile. So a sample of reading from memory using a pointer
> would be very helpful.
>
> Thanks!
>

If you have the definition of the C structure, you should use a Gambas 
structure to read or write it.

-- 
Benoît Minisini




More information about the User mailing list