[Gambas-user] If TypeOf( ) of a Pointer gives 811 instead of 11...

Ru Vuott vuott at ...325...
Mon Sep 16 11:38:52 CEST 2013


Hello,

I wrote a very short "shared library" .so, which simply returns a pointer to a "Structure" as defined in the file "SDL.h".
Well... in Gambas code I pick this pointer...

I did a little test: if I insert that pointer variable in the "TypeOf ()" function, I get 881  instead of 11  !

Why ?

Regards
vuott

-------
Here the Gambas code:

Library "/path/of/my/little/shared/library"

Private Extern verifica() As Pointer


Public Sub Form_Open()

 Dim p As Pointer

' I invoke the external function:
    p = verifica()
    
    Print TypeOf(p)

End




More information about the User mailing list