Objects in COM
Posted on 2002-03-25
Is there a way to pass a non-COM object (an object created outside of the COM object) through an interface where we do not have to know the definition of the object. Kind of along the line of this:
Outside of the COM object, we have a C++ class:
// methods, variables, etc.
In the .idl file for the COM object, we have this:
[id(1), helpstring("method Test")] HRESULT Test( blah );
Is there a way to pass an instance of class Foo into the COM object through the interface method Test, with the ability to use the methods and variables within the Foo object from the COM object?
What would the parameters in the instance method be?