Hi all,
I am trying to create a class that will act as event sink to a COM object. Just to tell you the COM object is SoftUSBEndpoint which is part of Device Simulation Framework.
Anyways its outbound interface is ISoftUSBEndpointEevents which implements IUnknown interface. It is shown below
ISoftUSBEndpointEvents : public IUnknown
{
...........
.........
};
I tried to implement my EventSink class using IDispEventSimpleImpl but its not working for me.
Is it because IDispEventSimpleImpl provides implementation of IDispatch which is not in my hierarchy? If this is so, then how to build non COM event sink class
By the way it worked fine when I implemented my event sink class as a COM class as shown below
class ATL_NO_VTABLE CLoopbackDevice :
public CComObjectRootEx<CComSingleThreadModel>,
public CComCoClass<CLoopbackDevice, &CLSID_LoopbackDevice>,
public ISoftUSBEndpointEvents,
public IDispatchImpl<ILoopbackDevice, &IID_ILoopbackDevice, &LIBID_SoftUSBLoopbackLib, /*wMajor =*/ 1, /*wMinor =*/ 0>
{
Any clue??