Struggling with accessing a non IDispatch method in an ActiveX control I created.
In my web page, I have two separate Active X objects that were developed by me. The issue arises when I call a method on the first object, which returns an interface pointer to a new COM object that is not co-creatable. Subsequently, I call a method on this new object while passing the second ActiveX object as an argument. In this particular method, I employ QueryInterface to retrieve a private/internal interface pointer on my second ActiveX object. However, the problem surfaces as the returned pointer from QueryInterface does not represent a valid pointer to my object, leading to crashes upon any usage attempts.
The conundrum lies in how I can acquire an interface to my genuine object for usability. Considering my private interface involves structures and is incompatible with IDispatch, coupled with being an internal interface that mustn't be exposed in the type library, what steps can I take?