i write activex control by C#,now want to use fb to wrapper this Activex Control。Havea a few problems:
The Completed event is not registered.
_ATL_FUNC_INFO efiCompleted = {CC_STDCALL, VT_EMPTY, 1, {VT_BSTR}};
BEGIN_SINK_MAP(axWrapperAxWin)
SINK_ENTRY_INFO(1, __uuidof(AXCTLEVTINTF), 0x00000001, onCompleted, &efiCompleted)
//SINK_ENTRY_INFO(1, __uuidof(AXCTLEVTINTF), DISPID_KEYPRESS, onKeyPress, &efiKeyPress)
END_SINK_MAP()
// Declare the ActiveX control event handler functions
void __stdcall onCompleted(CComBSTR& val);
oleview views:
[
uuid(08831BB6-FEA7-4EBC-AFA2-BB6C574B0227),
version(1.0),
custom(0F21F359-AB84-41E8-9A78-36D110E6D2F9, "ActiveXLib.IActiveXPlayerX")
]
dispinterface IActiveXPlayerX {
properties:
methods:
[id(0x00000001)]
void Completed([in] BSTR s);
};
i write activex control by C#,now want to use fb to wrapper this Activex Control。Havea a few problems:
The Completed event is not registered.
_ATL_FUNC_INFO efiCompleted = {CC_STDCALL, VT_EMPTY, 1, {VT_BSTR}};
BEGIN_SINK_MAP(axWrapperAxWin)
SINK_ENTRY_INFO(1, __uuidof(AXCTLEVTINTF), 0x00000001, onCompleted, &efiCompleted)
//SINK_ENTRY_INFO(1, __uuidof(AXCTLEVTINTF), DISPID_KEYPRESS, onKeyPress, &efiKeyPress)
END_SINK_MAP()
oleview views:
[
uuid(08831BB6-FEA7-4EBC-AFA2-BB6C574B0227),
version(1.0),
custom(0F21F359-AB84-41E8-9A78-36D110E6D2F9, "ActiveXLib.IActiveXPlayerX")
]
dispinterface IActiveXPlayerX {
properties:
methods:
[id(0x00000001)]
void Completed([in] BSTR s);
};