PtrObj Function in Visual Basic

The Visual Basic 6.0 function performs the reverse of the undocumented ObjPtr function.  ObjPtr returns the address of an object (e.g. a long integer pointer to the object).  This function converts the pointer back to a legal object reference.  You should not use this function unless you really know what you are doing (e.g. you should understand pointers and COM reference counting).  Incorrect use of the function will crash your program.


See Also