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. Access IDispatch from C

Access IDispatch from C

Scheduled Pinned Locked Moved COM
c++comquestion
2 Posts 2 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.
  • S Offline
    S Offline
    Spiros
    wrote on last edited by
    #1

    Hi everybody I have a COM object that has 1 method and it is dual interface written with VC++ 6.0. Is there a way to access it from a C program? Thank you for your time Spiros Prantalos Miami the place to be!!

    J 1 Reply Last reply
    0
    • S Spiros

      Hi everybody I have a COM object that has 1 method and it is dual interface written with VC++ 6.0. Is there a way to access it from a C program? Thank you for your time Spiros Prantalos Miami the place to be!!

      J Offline
      J Offline
      Jorgen Sigvardsson
      wrote on last edited by
      #2

      I assume you have the IDL file which defines your interface? Or even better, the header file produced by midl.exe? If you don't have the header file, just run midl.exe on the idl file and it'll produce it for you. Anyway, this midl generated header file contains macros which will ease your burden on calling the COM object in C. (Just look at it and you'll figure it out) -- Sancte Míchael Archángele, defénde nos in proélio contra nequítiam et insídias diáboli esto præsídium. Imperet illi Deus, súpplices deprecámur: tuque, princeps milítiæ cæléstis, Sátanam aliósque spíritus malígnos, qui ad perditiónem animárum pervagántur in mundo, divína virtúte, In inférnum detrude. Amen.

      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