Callback from a C++ COM DLL to a C# application
问题 This is going to be a long post, as I want to expose you all the steps I tried to make this work :) I have C++ COM dll which contains a VideoPlayer class which uses the Media Foundation API to display a video. The VideoPlayer class is defined using an IDL file: [ object, uuid(74FDBBB1-BFFB-4F7E-ACA3-ADB0C7232790), dual, nonextensible, pointer_default(unique) ] interface IVideoPlayer : IDispatch { [id(1)] HRESULT Initialize([in] HWND* video_hwnd, [in] HWND* event_hwnd); [id(2)] HRESULT OpenUrl