Hi - new to all this. Trying to learn C++. How can I create an exe file in C++ that will open another file eg an excel file, when my created exe file is run??
Thanks for any help
TP

Use CreateProcess function for 32 bit applications

hasnt this topic already been posted?

hasnt this topic already been posted?

Yes, numerous times. Good catch ;) Shows how useful the search function is, right?

On windows you can use the CreateProcess function. On unix you can you can use the exec family of fucntions along with the fork system call to achieve the same thing.

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.