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. Visual Basic
  4. Running executables from VB

Running executables from VB

Scheduled Pinned Locked Moved Visual Basic
c++helphtmllinux
7 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
    Programmer_Chris
    wrote on last edited by
    #1

    Hi, I am trying to run Visual C++ stand alone executables in Visual Basic. The Visual C++ executables read in text files and load pictures from the folder in which they are located. When I try the shell command within VB it runs the executable but does not load the text files or the pictures. I also tried using an html link and had the same problem with the files not loading. Help!? Thanks in advance! Chris

    J D 2 Replies Last reply
    0
    • P Programmer_Chris

      Hi, I am trying to run Visual C++ stand alone executables in Visual Basic. The Visual C++ executables read in text files and load pictures from the folder in which they are located. When I try the shell command within VB it runs the executable but does not load the text files or the pictures. I also tried using an html link and had the same problem with the files not loading. Help!? Thanks in advance! Chris

      J Offline
      J Offline
      jlawren7
      wrote on last edited by
      #2

      AS for your html link are you using Vb 6? if so, you can do this ShellExecute Me.hWnd, "Open", "PAth to File\Doc.html", "", "", 1 put this into a Click event Help is great only if you ask correctly :)

      U 1 Reply Last reply
      0
      • P Programmer_Chris

        Hi, I am trying to run Visual C++ stand alone executables in Visual Basic. The Visual C++ executables read in text files and load pictures from the folder in which they are located. When I try the shell command within VB it runs the executable but does not load the text files or the pictures. I also tried using an html link and had the same problem with the files not loading. Help!? Thanks in advance! Chris

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

        Is it the C++ program that isn't loading the text/picture files? Is the C++ .EXE in the same directory as your VB app? Are the data files in the same directory as the C++ app or are they in the directory with the VB app? RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

        P 1 Reply Last reply
        0
        • D Dave Kreskowiak

          Is it the C++ program that isn't loading the text/picture files? Is the C++ .EXE in the same directory as your VB app? Are the data files in the same directory as the C++ app or are they in the directory with the VB app? RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

          P Offline
          P Offline
          Programmer_Chris
          wrote on last edited by
          #4

          I have tried putting them in the same directory as the VB app as well as trying an absolute path "C:\colorfill.jpg" and "C:\helpfile.txt" and it did not import the files. Any ideas? I am concerned that the recent Windows upgrade for security issues has disabled this ability because I could swear it worked not long ago. Any ideas? Thanks, Chris

          D 1 Reply Last reply
          0
          • P Programmer_Chris

            I have tried putting them in the same directory as the VB app as well as trying an absolute path "C:\colorfill.jpg" and "C:\helpfile.txt" and it did not import the files. Any ideas? I am concerned that the recent Windows upgrade for security issues has disabled this ability because I could swear it worked not long ago. Any ideas? Thanks, Chris

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

            IMPORT? :confused: What are you talking about? What does your code look like that does the shell thing and what EXACTLY is it supposed to do? RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

            P 1 Reply Last reply
            0
            • D Dave Kreskowiak

              IMPORT? :confused: What are you talking about? What does your code look like that does the shell thing and what EXACTLY is it supposed to do? RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

              P Offline
              P Offline
              Programmer_Chris
              wrote on last edited by
              #6

              I found the problem, your last response made me go back over where everthing was. You were right that if all the resource files were not in the same folder as the vb project it would not work. That works now! The html calls still do not work but I believe that is because the html is being run by another exe. Thanks again for your help! Chris

              1 Reply Last reply
              0
              • J jlawren7

                AS for your html link are you using Vb 6? if so, you can do this ShellExecute Me.hWnd, "Open", "PAth to File\Doc.html", "", "", 1 put this into a Click event Help is great only if you ask correctly :)

                U Offline
                U Offline
                User 1553171
                wrote on last edited by
                #7

                Ho wif i wan to make C# and VB6 send strings of text to each other on a network is this possible...how? i'm lost plss guide me thanks

                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