Running executables from VB
-
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
-
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
-
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
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
-
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
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
-
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
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
-
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
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
-
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 :)
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