Received: from VL-MS-MR001.sc1.videotron.ca (relais.videotron.ca [24.201.245.36]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f432u7A59165 for ; Wed, 2 May 2001 22:56:07 -0400 (EDT) (envelope-from moreno@mochima.com) Received: from mochima.com ([24.202.175.74]) by VL-MS-MR001.sc1.videotron.ca (Netscape Messaging Server 4.15) with ESMTP id GCQO5H00.O2B for ; Wed, 2 May 2001 22:56:05 -0400 Message-ID: <3AF0C8B1.2C7B771E@mochima.com> Date: Wed, 02 May 2001 22:55:45 -0400 From: Carlos Moreno Organization: Mochima Software / AudioSystems X-Mailer: Mozilla 4.75 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: pgsql-interfaces@postgresql.org Subject: Testing mailing-list + Question on C++ interface Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200105/8 X-Sequence-Number: 1532 I just subscribed and can't find the instructions to send messages to the list... Hope this is the right way... Anyway, I couldn't find an answer to my (very basic) problem in the FAQs, so here goes... I'm using C++ to connect to a PostgreSQL database, with something similar to this: PgConnection c ("host=localhost dbname=test"); c.Exec ("select * from test"); As soon as I do that, my program sends output to the console. (well, since I was writing a test program and I was printing the results of the SQL statement, I'm seeing the ouput duplicated). How can I avoid this? It is crucial that I do so, since I'm planning to use this on CGI applications, so anything that is sent to stdout would be caught by apache and sent back to the client's browser... (not really good news, huh? :-)) Anyway, I would appreciate any guidance (I guess I don't need to tell that I'm a beginner :-)) Thanks! Carlos --