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. How to run a VB program in VC++

How to run a VB program in VC++

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorialquestion
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.
  • M Offline
    M Offline
    mr2003
    wrote on last edited by
    #1

    Hi, I have a VB program and I would like to run it in VC++, is that possible? Ehsan Behboudi

    X 1 Reply Last reply
    0
    • M mr2003

      Hi, I have a VB program and I would like to run it in VC++, is that possible? Ehsan Behboudi

      X Offline
      X Offline
      Xiangyang Liu
      wrote on last edited by
      #2

      If your VB program is a com dll/exe, then using it in VC++ is no different than using a com object written with VC++. If it is a regular exe, then you can use the CreateProcess function (see MSDN for details).[

      My articles and software tools

      ](http://hometown.aol.com/XiangYangL/)

      M 1 Reply Last reply
      0
      • X Xiangyang Liu

        If your VB program is a com dll/exe, then using it in VC++ is no different than using a com object written with VC++. If it is a regular exe, then you can use the CreateProcess function (see MSDN for details).[

        My articles and software tools

        ](http://hometown.aol.com/XiangYangL/)

        M Offline
        M Offline
        mr2003
        wrote on last edited by
        #3

        yes, the VB objects are all COM objects. I have a whole bunch of functions in VB,, which I would like to use in VC++. They are all COM objects. How can I use the functions, or include the .bas in my VC++ so I could just call the functions in VC++. Ehsan Behboudi

        M 1 Reply Last reply
        0
        • M mr2003

          yes, the VB objects are all COM objects. I have a whole bunch of functions in VB,, which I would like to use in VC++. They are all COM objects. How can I use the functions, or include the .bas in my VC++ so I could just call the functions in VC++. Ehsan Behboudi

          M Offline
          M Offline
          Michael P Butler
          wrote on last edited by
          #4

          mr2003 wrote: How can I use the functions, or include the .bas in my VC++ so I could just call the functions in VC++. You can't use the .BAS functions. If you look up #import on MSDN, you should be able to call your VB COM objects from C++ easily. Michael 'War is at best barbarism...Its glory is all moonshine. It is only those who have neither fired a shot nor heard the shrieks and groans of the wounded who cry aloud for blood, more vengeance, more desolation. War is hell.' - General William Sherman, 1879

          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