I created an ActiveX control without using MFC/ATL class assistent by implementing the Basic Interfaces.
I am testing the control using a MFC-Dialog. The control is created by CDialog::CreateControl( ). This works fine an the control is displayed. In the method IOleWindow::Get Window( ) the HWND of the control is given back. But the control container tries later in function Attach_Window( ) to attach this handle to the conatiners CWnd which leads to an exception. Obviously something goes wrong with the window handles.
This leads to the following questions:
What is going wrong here?
What has the function IOleWindow::Get Window( ) has to return,i.e. the handle of which window?
What is the right location to create the server window? (Currently in COleObject::DoVerb)
What is the minimal set of interfaces in order to implement a working ActiveX control?
Thank you,
Thomas