Ok, sorry about this, but how can I use this in a callback?

I have tried 2 things:
1) trying to make this part of the same window as the text editor,
2)just calling it to open the popen window from a callback

neither of these work correctly. I can open the peopen window as a second 
window(not really what i want to do, but its at least something)but i must run 
whatever command through there as the window opens.

The Fl::add_fd(fileno(G_fp), HandleFD, (void*)&brow); command is really giving 
me problems too if I try to open the window from a callback.

I would like this to be in the same window as my text editor, however, i can't 
get that to work at all. (using the text editor example given with Quincy2005) 
If you can help me do that instead of opening it in a new window, I would 
really appreciate it.


Thanks again for all your help,
Adam


>
> You were right, I missed that. It's working much better now thank you!
>
> I only have one small problem left, but I'm sure I'll figure that out. if the 
> file doesn't exist, the line saying "file does not exist" doesn't show up on 
> either screen, but that can be remedied and is likely not going to be 
> possible in my program. Thanks again for your help!
>
>
> Adam
>
> > adam wrote:
> > > I tried compiling the code u sent, and I'm getting errors.
> > > I use quincy2005 which uses the mingw compiler. errors are:
> > > "
> > > 23: error 'vsprintf_s' was not declared i this scope
> > > 52: error 'sprintf_s' was not declared in this scope
> > > "
> >
> >     If you mean the code on the google groups link, that's a program
> >     intended for Microsoft's VS compiler.
> >
> >     If you're using something else, you might need to add some #include's
> >     check your compiler's docs for those functions shown above, and see
> >     what file needs to be #include'ed, then add those at the top.
> >
> > > That's just one program I'm calling. The other program I'm calling
> > > will show show nothing in the GUI window, but everything in the console.
> > > regardless of if its job was successful or not.
> >
> >     Are you sure you added the "2>&1" to your popen() command?
> >     Maybe you missed this part of my previous reply:
> >
> >
> > >>  If you want popen() to grab /both/ stdout /and/ stderr
> > >>  from the app, you'll need to invoke the app with 2>&1, eg:
> > >>
> > >> popen("yourapp -arg1 -arg2 2>&1", "r");
> > >>                            ^^^^
>

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to