Newbie-Frage zur Übergabe einer Variable
-
Hallo,
wie übergebe ich die Variable(ausgewählte Datei) an den system-Aufruf/* Get the selected filename and print it to the console */ static void file_ok_sel( GtkWidget *w, GtkFileSelection *fs ) { g_print ("%s\n", gtk_file_selection_get_filename (GTK_FILE_SELECTION (fs))); system ("scanimage --resolution 100 -l 10 -x 200 -y 290 >gtk_file_selection_get_filename (GTK_FILE_SELECTION (fs))"); }
Das Beispiel stammt von hier http://library.gnome.org/devel/gtk-tutorial/stable/x1209.html. Wie mache ich die richtige Übergabe an scanimage?
Danke Bernd
-
Die Antwort gibt es hier
http://www.c-plusplus.net/forum/viewtopic-var-t-is-238606.html