468,513 Members | 1,750 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,513 developers. It's quick & easy.

Execute *.exe file using c++

Hey guyz,
I'm leaning c++.
i wanna execute *.exe file using c++ pogramming.
For example I have four *.exe files,
a.exe
b.exe
c.ece
d.exe
Now i'll ask user for option that which file he/she wants to open(using switch function)!...
So can any one tell me what are the header file and functions should we use.
I'm using windows os...

Please reply for tat!!!...
Dec 27 '07 #1
2 4197
gpraghuram
1,275 Expert 1GB
Hey guyz,
I'm leaning c++.
i wanna execute *.exe file using c++ pogramming.
For example I have four *.exe files,
a.exe
b.exe
c.ece
d.exe
Now i'll ask user for option that which file he/she wants to open(using switch function)!...
So can any one tell me what are the header file and functions should we use.
I'm using windows os...

Please reply for tat!!!...

You can use system() function call to call another executable from your code.
Try to to get more infoo about the function call from the net and try with that.
Even after that u are stuck up we can help you

Raghuram
Dec 27 '07 #2
You probably want to look into ShellExecute as well.
http://msdn2.microsoft.com/en-us/library/bb762153.aspx
Dec 30 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by S.W. Rasmussen | last post: by
reply views Thread by Eric Wood | last post: by
3 posts views Thread by Lyle Fairfield | last post: by
4 posts views Thread by Chris | last post: by
1 post views Thread by Eric Wood | last post: by
17 posts views Thread by =?Utf-8?B?SmltIFJvZGdlcnM=?= | last post: by
1 post views Thread by fmendoza | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.