opening files

Hi
Imagine I have made something like paint. When I double - click an image file I want my program to open it. How can I do that? I know how to start a program when double - clicking a file, but how can it know what am I trying to open?
Last edited on
Right click on the file -> Open with (-> Choose program, if it's a know file type)
Last edited on
Already found it. It's 2nd string in char* argv[]
D'oh. Now I get it. =)
Topic archived. No new replies allowed.