cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Windows Programming
opening files
opening files
Dec 9, 2008 at 2:13pm UTC
hamsterman
(4538)
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
Dec 9, 2008 at 2:57pm UTC
Dec 9, 2008 at 2:17pm UTC
scythe
(26)
Right click on the file -> Open with (-> Choose program, if it's a know file type)
Last edited on
Dec 9, 2008 at 2:17pm UTC
Dec 9, 2008 at 3:26pm UTC
hamsterman
(4538)
Already found it. It's 2nd string in
char
* argv[]
Dec 9, 2008 at 3:31pm UTC
scythe
(26)
D'oh. Now I get it. =)
Topic archived. No new replies allowed.