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. VB Scripting in MFC

VB Scripting in MFC

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

    I would like to allow my MFC program to execute a VB script. This script would also include command specific to my application. Can someone point me in the right (probably COM) direction? Neil

    D M 2 Replies Last reply
    0
    • S soundman32

      I would like to allow my MFC program to execute a VB script. This script would also include command specific to my application. Can someone point me in the right (probably COM) direction? Neil

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      If you are wanting to execute a .vbs or .wsh file, you can use ShellExecute().


      "The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)

      1 Reply Last reply
      0
      • S soundman32

        I would like to allow my MFC program to execute a VB script. This script would also include command specific to my application. Can someone point me in the right (probably COM) direction? Neil

        M Offline
        M Offline
        Mike Dimmick
        wrote on last edited by
        #3

        I think, start from Windows Script Interfaces[^] and continue from there. You'll find Eric Lippert's blog[^] helpful as well. Eric was one of the developers on the VBScript engine. If you want simpler scripting, consider using the Microsoft Scripting Control, msscript.ocx. Stability. What an interesting concept. -- Chris Maunder

        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