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

I particularly want to find the "correct" way of setting a Ptr variable to
the address  of a structure.

There is no correct way to get the address of a structure, or of any other type of variable.

Also how to pass the address of a RB
structure as an argument to a method which takes a pointer  ( Ptr) .

There is no way to do this. Try defining the parameter using ByRef and the structure's type instead of Ptr. Using your sample code, the technique might look like this:

Declare Sub mymethod( ByRef arg1 As myStructure )
....
Dim mystruct As myStructure
Call mymethod (mystruct)

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