On Aug 15, 2006, at 11: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?
Also - how can I convert a pointer to a structure obtained from a
Dylib call
into an RB structure reference ?
Couldn't the AddressOf keyword be extended in future to cover this ?
Dan
Use a memoryblock then
You can do
dim mb1 as new memoryBlock( ... required size ... )
dim mb2 as new memoryblock(4)
dim address as integer
mb2.Ptr(0) = mb1
address = mb2.Long(0) // address now holds the address of mb1
_______________________________________________
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>