I try to make a simple program using gtkmm library that if you push the button, it will play file in spesific directory. I use external program. It is mplayer. But if I use system function like this:
when I push the button, it will play the file just I hope but then I can not do anything with my application's window anymore. I have to kill or wait the child process so that I can manipulate my application's window.Code:Glib::ustring file_p;
file_p = entry1->get_text();
Glib::ustring System = "mplayer " + file_p;
system(System.c_str());
I have read the faq. OS: Linux Slackware 9.1. Compiler: GNU C++ compiler v 3.2. There is no process.h and windows.h in my Linux box. So is there anyway I could call external program beside system function in my Linux box?