Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Dec 25th, 2007, 11:54 AM   #1
jgrossm1
Newbie
 
Join Date: Dec 2007
Posts: 3
Rep Power: 0 jgrossm1 is on a distinguished road
external .exe

hey, i'm new to visual basic, and was wondering what is the best way to run an external .exe file that I created from a Visual Basic program. I'm doing this purely for fun, and I've come across the Shell() function already, and it works, but does anyone know of other ways?
jgrossm1 is offline   Reply With Quote
Old Dec 26th, 2007, 8:57 PM   #2
PhilBon
Hobbyist Programmer
 
PhilBon's Avatar
 
Join Date: Nov 2005
Posts: 172
Rep Power: 3 PhilBon is on a distinguished road
Send a message via AIM to PhilBon Send a message via MSN to PhilBon
Re: external .exe

why don't you just use the code for the EXE in your own program?
look at system processes.
PhilBon is offline   Reply With Quote
Old Dec 26th, 2007, 9:18 PM   #3
jgrossm1
Newbie
 
Join Date: Dec 2007
Posts: 3
Rep Power: 0 jgrossm1 is on a distinguished road
Re: external .exe

Quote:
Originally Posted by PhilBon View Post
why don't you just use the code for the EXE in your own program?
look at system processes.
by this im guessing you mean basically just transposing the source code of my C program to Visual Basic? If thats it, then its because the program I wrote has a rather significant amount of computation within it, which C is better suited for, as opposed to the ease of use, organization, and creation of a sophisticated graphical interface quickly that Visual Basic has worked well for in the past for me. If thats not what you were saying, please correct me, but thank you for the response.

Either way, does anyone else have any other ideas? Thanks
jgrossm1 is offline   Reply With Quote
Old Dec 26th, 2007, 9:22 PM   #4
Dameon
Troll
 
Dameon's Avatar
 
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4 Dameon is on a distinguished road
Re: external .exe

You can wrap the functions you need in to a DLL and import them in the same way as windows api calls.
__________________
MD5(sig) = bcef75433db02e9ad9bf81d6f7c5c270
Dameon is offline   Reply With Quote
Old Dec 26th, 2007, 9:34 PM   #5
PhilBon
Hobbyist Programmer
 
PhilBon's Avatar
 
Join Date: Nov 2005
Posts: 172
Rep Power: 3 PhilBon is on a distinguished road
Send a message via AIM to PhilBon Send a message via MSN to PhilBon
Re: external .exe

Quote:
Originally Posted by jgrossm1 View Post
hey, i'm new to visual basic, and was wondering what is the best way to run an external .exe file that I created from a Visual Basic program. I'm doing this purely for fun, and I've come across the Shell() function already, and it works, but does anyone know of other ways?
I'm sorry, my understanding was that both programs were written in VB. System.Processes should deal with starting and stopping current processes. If you need I can look up a program i made that would do this.
PhilBon is offline   Reply With Quote
Old Dec 26th, 2007, 10:18 PM   #6
jgrossm1
Newbie
 
Join Date: Dec 2007
Posts: 3
Rep Power: 0 jgrossm1 is on a distinguished road
Re: external .exe

Quote:
Originally Posted by PhilBon View Post
I'm sorry, my understanding was that both programs were written in VB. System.Processes should deal with starting and stopping current processes. If you need I can look up a program i made that would do this.
No, that's alright, but thank you for the effort. I'm still working on learning Visual Basic, and only recently started, so I imagine if nothing else I will come across other ways at some point. Either way, there is the Shell() command, which does the job, if rather inelegantly.

Still, thank you for the responses
jgrossm1 is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Detecting/Blocking Events in External Applications ZeeMan Visual Basic 0 Jun 28th, 2006 6:32 PM
Stripping .exe? Prm753 Other Programming Languages 2 Feb 16th, 2006 12:54 PM
Problem with extracting file description from .exe files!!! Pedja C++ 3 Dec 13th, 2005 11:23 AM
external js file stores data glevine JavaScript and Client-Side Browser Scripting 7 Aug 25th, 2005 12:42 PM
Access COBOL external data in Assembler packerm Other Programming Languages 0 May 24th, 2005 5:03 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 2:31 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC