I need to catch an event fired by an ActiveX control embed into a
page.
The code in the DHTML_EVENT_MAP() is:
BEGIN_DHTML_EVENT_MAP(CModificaDatiCont)
DHTML_EVENT_ONCLICK(_T("visColRettifica"), OnChShowrett)
{DHTMLEVENTMAPENTRY_CONTROL,0x02,_T("F1Book"),
reinterpret_cast<DHEVTFUNCCONTROL>(OnDblClick)) },
END_DHTML_EVENT_MAP()
I need to perform this cast because the DHTML_EVENT_AXCONTROL() works
only for functions without parameters; my callback func has two
parameters:
(declare in CModificaDatiCont.h)
void OnDblClick(long nRow, long nCol);
All works fine until I try to access variables in the OnDblClick()
function; every access generates a violation, forn example *this
object is corrupted.
Someone can help me? i'm really in trouble.
Thanks in advance for help,
Luca Basso Ricci.