Thanks fmx
Compiles now but still get a pointer error:warning 3(2): Passing different pointer types, at parameter 2 of ...
So "dim as zstring ptr array(n) = ( @"n one", @"n two", ...) is the standard way of passing pointers a DLL/SO ?
I am looking through help docs ZSstring Ptr,|Pointer and I'll try some different variations.
This is part my attempts to convert raygui.h examples to raygui.bi (wiitd/raylib-freebasic). Interestingly the example from fb-raylib
Code: Select all
"raygui_controls_test_suite.bas" (raylib 3.5-dev, raygui 2.6-dev) uses the following:
dim as string listViewExList( ... ) = { "This", "is", "a", "list view", "with", "disable", "elements", "amazing!" }
listViewExActive = GuiListViewEx( Rectangle( 165, 180, 140, 200 ), listViewExList(), 8, @listViewExFocus, @listViewExScrollIndex, listViewExActive )
raygui.bi
RAYGUIDEF Function GuiListViewEx overload(bounds As Rectangle, text0 As Const zstring ptr ptr, count as long , focus as long ptr, scrollIndex as long Ptr, active as long) As long
The current raygui.bi V3.2 has changed (Note byval)
Code: Select all
declare function GuiListViewEx(byval bounds as Rectangle, byval text as const zstring ptr ptr, byval count as long, byval focus as long ptr, byval scrollIndex as long ptr, byval active as long) as long
I think this is a problem with the header (byval, byref). I'll continue this with WIITD, or just rework the header.
The info you gave above is still well appreciated as I needed to get some direction on creating C pointers in FB.
Axle