Acces to internal data from a COM interface.
Posted on 1998-04-06
I've written a function that has 2 interfaces IObj1 en IObj2 for parameters. The interfaces are related to a COM object OBJ. This OBJ has an integer variable in his private section. How can I access this integer from IObj1 or IObj2, without declaring additional methods in the interfaces.
This is a simplification of the problem. The answer has to work for strings, double and even objects.
I already know the tricj with the GetInterfaceEntry etc... . Is there a clean solution to this problem ?