As a novice, I would like to consult how to transfer function pointers to. SO libraries written in C/C++ in Xojo.
This is useful for some callback functions.
In addition, the Ptr.Object method indicates that there is no way to pass a structure to the C/C++ so library by pointer.
@song xiao Use AddressOf <method_name> to get the Ptr of a method in Xojo. You can pass it to a library. Note that you may need to insert “#pragma stackOverflowChecking false” at the beginning of your callback method in Xojo.
I am not sure about the structure’s ptr. Have you tried declaring the parameter as “ByRef myStructure as StructureName”?