I have a programmer for PIC (WISP628) which works like a charm. The software to transfer the datas through the serial port is however running as a "DOS-application" (no GUI) and it's a bit tiresome as several parameters need to be set and the status needs to be shown.
I therefor plan to make a "front-end" for it and thought on how to transfer the printed text (printing while doing it's stuff) so it does not print on the "DOS-window" but rather send the text to my front-end.
One way is to redirect the output to a temp-file and later read that file, show the content and erase the file but it feels like a 2'nd grade solution.
So: is there a way to redirect messages from the console window (from a specific program) to "my program" and thus allowing me to work with that?
Totte
Keep making it perfect and it will end up broken.
I therefor plan to make a "front-end" for it and thought on how to transfer the printed text (printing while doing it's stuff) so it does not print on the "DOS-window" but rather send the text to my front-end.
One way is to redirect the output to a temp-file and later read that file, show the content and erase the file but it feels like a 2'nd grade solution.
So: is there a way to redirect messages from the console window (from a specific program) to "my program" and thus allowing me to work with that?
Totte
Keep making it perfect and it will end up broken.