On Aug 15, 2006, at 10:33 AM, Daniel Stenning wrote:

But I specifically need to pass the pointer of my structure to an external DLL function which takes a pointer to a structure. Is there no way to do
this?

Yes: declare the parameter ByRef.

Also - how can I convert a pointer to a structure obtained from a Dylib call
into an RB structure reference ?

You can't do that directly, but you can dereference the pointer:

Dim foo As Ptr, bar As someStructure
bar = foo.someStructure

Couldn't the AddressOf  keyword be extended in future to cover this ?

Yes, but that would take REALbasic in a different direction than we intend to go. REALbasic is not a pointer-oriented language.

Mars Saxman
REAL Software
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to