ActiveX and events
-
I use in dialog-based application ActiveX object (1) and in ActiveX object (1) second ActiveX object (2). I don`t use events from first ActiveX (1) in second ActiveX (2). Please, help me. Thanks.:confused: Ivan
-
I use in dialog-based application ActiveX object (1) and in ActiveX object (1) second ActiveX object (2). I don`t use events from first ActiveX (1) in second ActiveX (2). Please, help me. Thanks.:confused: Ivan
Ivan, I assume you are asking if your DialogApp can receive event from the 2nd ActiveX Control. You need to somehow get access to ActiveXCtrl2 and I recommend that that you implement a mehtod in ActiveXCtrl1 like: HRESULT GetActiveX2(IUnknown** ppUnknown); Which will supply you with the Interface pointer. Then you can do the usual QueryInterface stuff to get a handle to the ctrl. That then leads to Asking for the ConnectionPointContainer etc. This is assuming C++ of course. Sorry I couldn't go into more detail, but there just so much I didn't know where to start. Jules