Is there an easy way to create a class that is derived from IDispatch and which can be passed to an API like this (this is C ++):
pDOM2->attachEvent(CComBSTR("event"), new DispatchFunction);
I know how to create a C ++ object that handles a call with an oversight of the value 0, but it is always very difficult to implement all IDispatch manually. I was wondering if ATL has a standard way to do this, as it is fairly common.
source
share