Hey, I was wondering what the code was to open a program using C++?
so basically writing a program that opens a program.
any help would be great :)
fish234
0
Newbie Poster
Recommended Answers
Jump to PostSince you didn't mention what compiler or OS you're using, the only suggestion I can make is the std::system function from <cstdlib>. Look that up in your standard library reference.
Jump to Postsorry, I'm using Visual studio express 2010 on Windows 7
Is std::system insufficient?
Jump to PostI tried that and I couldn't find a straight answer
That's bull. The first hit from that search string takes you directly to a reference page with a full code example! If you can't copy/paste/compile a five line program, you need to drop back to the hello world program and …
All 13 Replies
Narue
5,707
Bad Cop
Team Colleague
fish234
0
Newbie Poster
Narue
5,707
Bad Cop
Team Colleague
fish234
0
Newbie Poster
Narue
5,707
Bad Cop
Team Colleague
fish234
0
Newbie Poster
spoonlicker
-20
Junior Poster
fish234
0
Newbie Poster
spoonlicker
-20
Junior Poster
fish234
0
Newbie Poster
Narue
5,707
Bad Cop
Team Colleague
spoonlicker
-20
Junior Poster
Narue
5,707
Bad Cop
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.