POV-Ray : Newsgroups : povray.programming : A question about windows programming (C++) : Re: A question about windows programming (C++) Server Time
28 Jul 2024 20:35:21 EDT (-0400)
  Re: A question about windows programming (C++)  
From: Ronald L  Parker
Date: 5 Jun 1999 14:10:48
Message: <375a66f2.39667702@news.povray.org>
On 5 Jun 1999 10:26:43 -0400, Nieminen Mika <war### [at] cctutfi> wrote:

>  Not directly related to povray, but it's for an utility program that
>I'm making.
>
>  How do I redirect stdout and stderr to a text window inside my
>application (just like povray seems to do)?
>  I'm using borland C++ builder.

I don't think POV does, exactly.  It uses a set of macros for all text
output.  If you look at the windows config.h, you'll see that it
points those macros at a series of WIN_* functions that send the
output to the message window.

In win32, you might be able to get away with pointing stdout and
stderr at an anonymous pipe, and having another thread emptying the
other end of the pipe into a window of some kind.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.