On Aug 15, 2006, at 12:46 PM, Mars Saxman wrote:
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
Disregard my previous suggestion: this is much easier and better :)
-Jon
--
Jonathan Johnson
[EMAIL PROTECTED]
REAL Software, Inc.
_______________________________________________
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>