Sign in to follow this  
keikei_c

how to invoke a file in c++

Recommended Posts

hi! is there a way for this? if a user presses "h" on the keyboard, a notepad file will open, with all the help info on how to use the program. how does one do that in c++? please help :(

Share this post


Link to post
Share on other sites
Have a look at the Win32 API ShellExecute as well. This has the advantage that you don't need to "know" the application associated with a particular file type.

For example, if you called this on an .html file, the user's default browser would be called, not whichever browser you choose to invoke.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this