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. Run a Visual C++ program from VB Script and get a return value ??

Run a Visual C++ program from VB Script and get a return value ??

Scheduled Pinned Locked Moved C / C++ / MFC
c++testingbeta-testingtools
3 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.
  • B Offline
    B Offline
    bjolletts
    wrote on last edited by
    #1

    Hi all, Im currently developing a MFC-program in Visual C++ 6.0 that will identifiy a user through his/hers fingerprint. The C++ program needs to be launched from another program with VBA support (so Im currently testing it in MS Excel) The C++ program also needs to return a textstring with the username (or ID or some kind of text like "George Lucas") With my very basic skills in VBScript I have manged to run the C++ program. But is it possible to get something back from the program ?? Im guessing that the C++ program might need some kind of method to communicate back to the VB Script ... ? Im would be very thankful for any kind of help ! / daniel

    S 1 Reply Last reply
    0
    • B bjolletts

      Hi all, Im currently developing a MFC-program in Visual C++ 6.0 that will identifiy a user through his/hers fingerprint. The C++ program needs to be launched from another program with VBA support (so Im currently testing it in MS Excel) The C++ program also needs to return a textstring with the username (or ID or some kind of text like "George Lucas") With my very basic skills in VBScript I have manged to run the C++ program. But is it possible to get something back from the program ?? Im guessing that the C++ program might need some kind of method to communicate back to the VB Script ... ? Im would be very thankful for any kind of help ! / daniel

      S Offline
      S Offline
      Steve S
      wrote on last edited by
      #2

      I'd be tempted to write the app as a COM DLL, so that it can be launched as an in-proc, supporting automation. You could expose a method HRESULT Scan([out] BSTR* userid) that did the scan, any lookup, and returned an appropriate username (or a null string on failure). That would make the communication with the program much simpler. Steve S

      B 1 Reply Last reply
      0
      • S Steve S

        I'd be tempted to write the app as a COM DLL, so that it can be launched as an in-proc, supporting automation. You could expose a method HRESULT Scan([out] BSTR* userid) that did the scan, any lookup, and returned an appropriate username (or a null string on failure). That would make the communication with the program much simpler. Steve S

        B Offline
        B Offline
        bjolletts
        wrote on last edited by
        #3

        Thanks for your reply ! The app is like 99% complete though and it's pretty complex with a lot of dialogs functions. Could it be converted to a COM DLL in any easy way ?? (I have very limited experience with COM-programming and creating DLL's) And if not .. could there be any other way ? :~ :)

        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