Boost logo

Boost :

From: Reece Dunn (msclrhd_at_[hidden])
Date: 2005-01-11 17:27:00


Gennadiy Rozental wrote:
>>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.
>
> Where is it piped to then?

I am not sure where it is piped to, but it is possible to get the
output. Given:

// winapp.exe
WinMain(...)
{
    std::cout << "Hello World!\n";
}

On the console:
    winapp
produces no output, while
    winapp | cat
produces:
    Hello World!

Regards,
Reece


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