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. I am creating a program with Visual Basic Script files with C++.

I am creating a program with Visual Basic Script files with C++.

Scheduled Pinned Locked Moved C / C++ / MFC
c++tools
8 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.
  • C Offline
    C Offline
    c0d3r1 2
    wrote on last edited by
    #1

    I am creating a program where if an action occurs then a message box through visual basic script (.vbs). I plan to do I through a fstream file.

    if (statement)
    {
    open fstream file // I know that's not how you do it
    }

    V D 2 Replies Last reply
    0
    • C c0d3r1 2

      I am creating a program where if an action occurs then a message box through visual basic script (.vbs). I plan to do I through a fstream file.

      if (statement)
      {
      open fstream file // I know that's not how you do it
      }

      V Offline
      V Offline
      Victor Nijegorodov
      wrote on last edited by
      #2

      And what is your question?

      C 1 Reply Last reply
      0
      • V Victor Nijegorodov

        And what is your question?

        C Offline
        C Offline
        c0d3r1 2
        wrote on last edited by
        #3

        Can I do it and how?

        V 2 Replies Last reply
        0
        • C c0d3r1 2

          Can I do it and how?

          V Offline
          V Offline
          Victor Nijegorodov
          wrote on last edited by
          #4

          Probably, yes. What program/app should execute this VB script?

          C 1 Reply Last reply
          0
          • C c0d3r1 2

            I am creating a program where if an action occurs then a message box through visual basic script (.vbs). I plan to do I through a fstream file.

            if (statement)
            {
            open fstream file // I know that's not how you do it
            }

            D Offline
            D Offline
            Dave Kreskowiak
            wrote on last edited by
            #5

            Why on earth would you want to use a VBScript from C++ to show a messagebox?

            Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles.
            Dave Kreskowiak

            1 Reply Last reply
            0
            • V Victor Nijegorodov

              Probably, yes. What program/app should execute this VB script?

              C Offline
              C Offline
              c0d3r1 2
              wrote on last edited by
              #6

              Visual Studio 2019.

              V 1 Reply Last reply
              0
              • C c0d3r1 2

                Visual Studio 2019.

                V Offline
                V Offline
                Victor Nijegorodov
                wrote on last edited by
                #7

                VS is not to "execute", it's just to design! Please, explain more carefully what you are going to do with your VB script. And what for?

                1 Reply Last reply
                0
                • C c0d3r1 2

                  Can I do it and how?

                  V Offline
                  V Offline
                  Victor Nijegorodov
                  wrote on last edited by
                  #8

                  Have a look at [ShellExecute](https://docs.microsoft.com/en-us/windows/win32/api/shellapi/nf-shellapi-shellexecutea) or/and [ShellExecuteEx function (shellapi.h) - Win32 apps | Microsoft Docs](https://docs.microsoft.com/en-us/windows/win32/api/shellapi/nf-shellapi-shellexecuteexa)

                  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