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. can anybody tell me how i can call a vb activex dll from c++

can anybody tell me how i can call a vb activex dll from c++

Scheduled Pinned Locked Moved C / C++ / MFC
c++com
4 Posts 4 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.
  • P Offline
    P Offline
    philiptabraham
    wrote on last edited by
    #1

    can anybody tell me how i can call a vb activex dll from c++

    R N C 3 Replies Last reply
    0
    • P philiptabraham

      can anybody tell me how i can call a vb activex dll from c++

      R Offline
      R Offline
      ritz1234
      wrote on last edited by
      #2

      Follow this steps 1) Click on Tools->OLE/COM Object Viewer. 2) Press View TypeLib. 3) Select your VB dll location. 4) This will show you coclass and interfaces of the VB dll. 5) Save this file.This file is an IDL file. 6) Add this IDL file in your project. 7) Right click on IDL file and compile it.This will create a header file of the IDL file.Now include this file where you want. 8) Use this file which has defination of the coclass and its interfaces. :-D ritz1234

      1 Reply Last reply
      0
      • P philiptabraham

        can anybody tell me how i can call a vb activex dll from c++

        N Offline
        N Offline
        Nathan Holt at EMOM
        wrote on last edited by
        #3

        philiptabraham wrote:

        can anybody tell me how i can call a vb activex dll from c++

        Find the physical location of the VB file on the disk and use the #import directive to get the declarations into your program. I think if you use a recent enough version of Visual C++, you can #import by lib id. Nathan

        1 Reply Last reply
        0
        • P philiptabraham

          can anybody tell me how i can call a vb activex dll from c++

          C Offline
          C Offline
          CPallini
          wrote on last edited by
          #4

          They can. :)

          If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
          This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke

          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