Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

ActiveX Control without MFC/ATL

$
0
0

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


Viewing all articles
Browse latest Browse all 15302

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>