D
dbeavon
Guest
This may be a bit of an abstract question. Is there a way to assign a HANDLE to a Progress.Lang.Object or vice versa? Is there any built-in boxing classes that allows one to contain the other? For example I'm wondering if there is some way to define a generic API that may use one or the other in the declaration, but still support both types of references in the implementation. For example, lets say I build a generic interface with a method like so: METHOD PUBLIC VOID DoAction(INPUT p_Object AS Progress.Lang.Object ). Would there be a way to send a HANDLE thru that parameter (without building my own custom boxing class)? Or if I defined DoAction(INPUT p_Handle AS HANDLE) then could I somehow send an Object as the input ? "HANDLES" are the legacy way that OE allows you to pass around references to system components. It would be nice if there was some compatibility between those legacy handles and regular OO object references. Sometimes it seems that they are two different types of memory references that live in their own separate worlds. Any ideas would be appreciated.
Continue reading...
Continue reading...