Greg Ercolano wrote:
> adam wrote:
>> I'm looking for a function similar to the wxExecute function.
>> http://www.wxwidgets.org/wiki/index.php/WxExecute this allows you to do
>> command line stuff without using the command line.
>>
>> I've tried using the popen example from Greg Ercolano, but its not working.
>
> What problem are you having?
>
> I just compiled it again on my Visual Studio 6 and it ran fine. [..]
BTW, I'm assuming you mean this example:
http://seriss.com/people/erco/fltk/#add_fd
..and /not/ this other one, which also uses popen, but is unix only:
http://seriss.com/people/erco/fltk/#mkfifo
Life will definitely be easier if you use popen(), because then
you don't have to use threads.. add_fd() does all the work for you.
add_fd() only works with the unixy 'file descriptors' returned by
calls like popen/fopen/open/etc. add_fd() /won't/ work with
CreatePipe()/CreateFile(), because Microsoft wanted to be different.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk