I tried to make a simple text editor in C++ and gtkmm and I want to know how to open a text file with that program using "open with". To be better understood let's say I have a text file called "test.txt" and I want to open that file with my program using "open with".
Asked
Active
Viewed 141 times
-1
-
Does it accept command-line arguments? – Shark Jul 10 '13 at 11:39
-
@Shark:Yes it accept command-line arguments – 23ars Jul 10 '13 at 11:40
-
GtkFileChooserDialog http://www.gnu.org/software/guile-gnome/docs/gtk/html/GtkFileChooserDialog.html – Oscar Jul 10 '13 at 11:43
1 Answers
0
On windows, this is a registry setting. You can modify the registry setting from within your program but other than that it's up to the OS to launch your program.

Twifty
- 3,267
- 1
- 29
- 54