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. C / C++ / MFC
  4. Convert TLB file (type library) to IDL definition file

Convert TLB file (type library) to IDL definition file

Scheduled Pinned Locked Moved C / C++ / MFC
c++delphicomquestion
4 Posts 3 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.
  • A Offline
    A Offline
    Alexander M
    wrote on last edited by
    #1

    Hello guys, I have a TLB file and it's interface description in Delphi. But I want to create a C++ project that uses the interfaces exported by that Program. I extracted the TLB file from the executable and now I want to ask if there is a way to convert this TLB file to an IDL file. Any ideas?

    Don't try it, just do it! ;-)

    L D 2 Replies Last reply
    0
    • A Alexander M

      Hello guys, I have a TLB file and it's interface description in Delphi. But I want to create a C++ project that uses the interfaces exported by that Program. I extracted the TLB file from the executable and now I want to ask if there is a way to convert this TLB file to an IDL file. Any ideas?

      Don't try it, just do it! ;-)

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      Alexander wrote:

      But I want to create a C++ project that uses the interfaces exported by that Program.

      You can use the #import directive to generate ATL wrapper classes for the tlb file.

      led mike

      1 Reply Last reply
      0
      • A Alexander M

        Hello guys, I have a TLB file and it's interface description in Delphi. But I want to create a C++ project that uses the interfaces exported by that Program. I extracted the TLB file from the executable and now I want to ask if there is a way to convert this TLB file to an IDL file. Any ideas?

        Don't try it, just do it! ;-)

        D Offline
        D Offline
        Dave Calkins
        wrote on last edited by
        #3

        Yes, run the MS OLEViewer app (Start>>Run>>oleview.exe). From there, use File>>View Typelib. In the type library view, just use File>>Save As to save it as IDL.

        A 1 Reply Last reply
        0
        • D Dave Calkins

          Yes, run the MS OLEViewer app (Start>>Run>>oleview.exe). From there, use File>>View Typelib. In the type library view, just use File>>Save As to save it as IDL.

          A Offline
          A Offline
          Alexander M
          wrote on last edited by
          #4

          Thank you guys, both of you :)

          Don't try it, just do it! ;-)

          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