I am new for VC++. I am currently writing a DLL which will in turn invoke the function of ActiveX control.
I create a MFC AppWizard (dll) project and add the reference of the activeX Control. It compiled OK.
I write a simple console program to test it. I seem OK to load the dll. However, when I try to invoke the function of the ActiveX Control. I got error.
void CWnd::GetProperty(DISPID dwDispID, VARTYPE vtProp,
void* pvProp) const
ASSERT(m_pCtrlSite != NULL); // not an OLE control (not yet, at least)
It got error on the first ASSERT statement of the winocc.cpp file. I don't know what is going on. I do call the AfxEnableControlContainer(); already.
Do I miss anything?