this should b realitivly easy to answer but i need to know how to ask a use for an address to a program (example C:\Program Files\....) then have C++ open it up.
all i really need to know is the code required to open the program (the programs intended to be open is a compliled code [example LimeWire, Halo, 3Ds MAx, so on, so forth] and basicly i want it to run a program with in the C++ program with no disadvantiges or advantiges

Re: Run a program in C++ 80 80

The easiest way is system();: system("c:\\windows\\system32\\sol.exe"); Notice the escape backslash for the path backslash. (so: double backslahses)

Re: Run a program in C++ 80 80

> i want it to run a program with in the C++ program with no disadvantiges or advantiges
This would only be possible if there were only ONE method of running one program from another.
Unfortunately, there are several, so you get to play the "A & D" game.

As a counterpoint answer, look up CreateProcess()

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.