[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-glpk] Chaining glpk output
From: |
Nicolo Giorgetti |
Subject: |
Re: [Help-glpk] Chaining glpk output |
Date: |
Tue, 15 Mar 2005 11:32:53 -0500 |
> I am using Glpk in a gui program and I like to get glpk output in a textbox
> DO you know how to redirect stdout elsewhere?
If you are using the GLPK API routines in your program you could use
the lib_set_print_hook() and lib_set_fault_hook() functions to
redirect the outputs and errors, respectively, printed by glpk somewhere
else, e.g. in a file or a in textbox. See comments to these routines in
glplib2.c.
Regards,
Nicolo Giorgetti.