Is it possible to add and instantiate an activeX control into a dll. I found that when I try to instantiate the activeX control, it requires a CWnd by using the Create function. I am using the ActiveX control like this:
-I create it using the ActiveX wizard in a separate project.
-Then I use the 'Add to Project' menu in VC++ 5.0 and choose 'registered activeX controls.
-This puts a new object into my dll project, but it derives it from CWnd, which seems strange to me.
The ActiveX object is called CAmstelLight.
CAmstelLight m_pAmstel ;
BOOL bSuccess = m_pAmstel->Create((LPCTSTR)"AmstelLight Control",WS_BORDER,rectControl1,(CWnd*)m_p????,1000);
So when I try to call create on the new Activex control in the dll project of mine, I have no CWnd to pass to it, because dll is windowless!!
What is going on?