currently, you are just opening the external binary file for reading
what you need is for the operating system to execute the program
one way is the system() function
If you use system() to execute an external program,
you will lose all control over your program until the external program finishes
(your program will just sit there, waiting)
there are more elegant ways to execute external programs, and keep control
but because you're dealing with OS specific things, it gets complicated, fast
examples
http://www.cprogramming.com/tips/sho...ount=30&page=1
http://www.gidforums.com/t-3369.html
just be careful with system()
search and read up on it
understand the problems, and why people advise against it's use
|
|
Bookmarks