Open with functionality

closed account (DLAp4iN6)
Hi, I'm new to this forum and pretty new to C++, but I am somewhat experienced in programming overall. With lots of applications, such a word processor, you can save your file with a certain file extension, but then you can associate that file extension with a program.

How would you go about writing a program where you can have this functionality. My guess is that is some sort of run-time parameter variable that you can use. Thanks in advance!
If you're using windows, you can use the WINAPI. It has functions that allow you to create new keys in your registry that associate certain file extensions with their default programs.

https://msdn.microsoft.com/en-us/library/windows/desktop/ms724875(v=vs.85).aspx
Topic archived. No new replies allowed.