Problem with MIDL and Flash IDL
-
I used the Object Viewer tool to generate the IDL file for Shocwave Flash control, it appears to be ok. However, when I use MIDL to generate the header file, the methods in the IShockwaveFlashEvents interface are not generated, even if they are present in the IDL file itself. Is this standard behaviour or am I just stuck with an amateur mistake? I can generate my sink class based on the information found in the IDL, but I'd rather use MIDL for the task as I'll be interfacing with other controls in the future and want to learn the ins and outs of Visual Studio.NET. The event interface is in fact based on IDispatch (i.e. dispinterface), is this the reason the methods are hidden from the generated header file? So, even if the methods are present in the IDL along with their disp ids, they won't be automatically included, but force the developer to query for the methods to find the disp ids. Then again, should my event sink be based on IDispatch as well or should I manually copy the declarations to form the vtable as defined in the IDL? Please take the time and guide a COM/ATL newbie to a solution. Thanks!