I'm using MFC in Visual Studio 2015 on Windows 7 64Bit.
In my application,there is an activeX control,I need to communicate between activeX control and my application.
But activeX need my application to pass a LPDISPATCH pointer/interface to it.
How should I do to get the LPDISPATCH pointer/interface of my application's method(OnExtRequest)?
This is the method provided by the activeX:
void SetOnExtRequest(LPDISPATCH propVal)
{
SetProperty(0x4, VT_DISPATCH, propVal);
}
This is my application's callback function(pass this function's LPDISPATCH Pointer/interface to activeX)
int CMyDlg::OnExtRequest(CString sObj, int uMeth, CString sData, int uHandle, CString sPeer)
{
//TODO:......
}
Plz help me,thank you!