Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. COM
  4. Problem with MIDL and Flash IDL

Problem with MIDL and Flash IDL

Scheduled Pinned Locked Moved COM
csharphelpc++databasevisual-studio
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    gialli
    wrote on last edited by
    #1

    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!

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups