I want to write a simple program in C++ to open several other programs and files and then exit. I use several files and programs frequently for web development and would like to be able do double-click and icon and have them open up.
thanks!
I want to write a simple program in C++ to open several other programs and files and then exit. I use several files and programs frequently for web development and would like to be able do double-click and icon and have them open up.
thanks!
Ways to start other programs from a C/C++ program are discussed in the FAQ here.
Tip, don't use the system() option.
Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.
There are several solutions. One solution is CeateProcess().
Kuphryn
As adrian says - goto the faq...
But if you are opening documents and other files that are not exe files, but open inside exes, then use ShellExecute(Ex), as this function will look to the registry to see what program is registered to work with the file you want to open...example in the faq