Article View: borland.public.cppbuilder.nativeapi
Article #6880Re: cout <<"HELP" << endl; How to redirect all cout to a Memo ?
From: Liz Albin
Date: Wed, 30 Mar 2005 18:10
Date: Wed, 30 Mar 2005 18:10
20 lines
1270 bytes
1270 bytes
On Thu, 31 Mar 2005 02:45:32 +1000, Zimmer Aaron wrote: > Using "cout" for debugging, logging is very easy and flexible when running > in console applications. > > cout <<"HELP" << endl; > > How to redirect all cout to a Memo ? This was asked and answered in .cpp as: I'd think you be better off writing to stringstreams, and then passing the .str().c_str() to the Memo. -- Good luck, liz
Technical Details
Message-ID:
<1u2cx3hbwkepd$.1jp2y8l1da9vl.dlg@40tude.net>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<424ad7c1$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,70264b2d092f1bae X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: Liz Albin <lizalbin@yahooNotThis.com> Subject: Re: cout <<"HELP" << endl; How to redirect all cout to a Memo ? Newsgroups: borland.public.cppbuilder.nativeapi User-Agent: 40tude_Dialog/2.0.15.1 (a503fe1a.84.476) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit References: <424ad7c1$1@newsgroups.borland.com> Date: Wed, 30 Mar 2005 10:10:21 -0800 Message-ID: <1u2cx3hbwkepd$.1jp2y8l1da9vl.dlg@40tude.net> NNTP-Posting-Host: 69.229.243.239 X-Trace: newsgroups.borland.com 1112206273 69.229.243.239 (30 Mar 2005 10:11:13 -0800) Lines: 20 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail