Boost logo

Boost :

From: Noel Llopis (nll_pub_at_[hidden])
Date: 2005-01-11 16:10:42


Robert Ramey <ramey <at> rrsd.com> writes:

> I'm not sure if this is what you're referring to but ... I added all my
> tests to the post-build stop according to instructions in the VC 7.1 IDE.
> Each time I rebuild, the tests are run - and the messages all show up in the
> "Outpu Window" of the IDE.

Hmm... I'm trying to think why I needed that in the past.

Yes, redirecting the output to the output page will work fine as long as
you're working with a "console" app. Unfortunately there are times
that to initialize some of the libraries we need to create a DirectX
surface, or at least a Window instance. In that case, we have to create
a Win32 app, and std::out is not piped correctly to the output. I'll have
to double-check this.

One thing is for sure though, having control over main() is very important.
Otherwise it might not even be possible to create anything other than a
 regular console app. I thought it would be relatively trivial to take over
main, but then I realized that main() is part of the library right now, so
the ony way to provide your own would be modifying the source code of
the library and recompiling.

Any thoughts on that?

--Noel


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk