X-Original-To: pgsql-interfaces@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id BA6604761F8 for ; Thu, 6 Feb 2003 16:45:23 -0500 (EST) Received: from mxzilla1.xs4all.nl (mxzilla1.xs4all.nl [194.109.6.54]) by postgresql.org (Postfix) with ESMTP id 20BD4476453 for ; Thu, 6 Feb 2003 15:59:58 -0500 (EST) Received: from xs1.xs4all.nl (xs1.xs4all.nl [194.109.3.11]) by mxzilla1.xs4all.nl (8.12.3/8.12.3) with ESMTP id h16KxvJ9033025; Thu, 6 Feb 2003 21:59:57 +0100 (CET) Received: (from jtv@localhost) by xs1.xs4all.nl (8.11.6/8.11.6) id h16KxvH76398; Thu, 6 Feb 2003 21:59:57 +0100 (CET) (envelope-from jtv) Date: Thu, 6 Feb 2003 21:59:57 +0100 From: "Jeroen T. Vermeulen" To: brajesh Cc: pgsql-interfaces@postgresql.org Subject: Re: how to Message-ID: <20030206205957.GM32118@xs4all.nl> Mail-Followup-To: brajesh , pgsql-interfaces@postgresql.org References: <3254.10.0.2.225.1043934475.squirrel@sumasoft.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3254.10.0.2.225.1043934475.squirrel@sumasoft.net> User-Agent: Mutt/1.4i X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200302/14 X-Sequence-Number: 3635 On Thu, Jan 30, 2003 at 07:17:55PM +0530, brajesh wrote: > > How can i connect to postgres database from c++ code. > i know there is "libpq-fe". > but what about from windows? Well, libpq is a C library so you can also call it from C++; it works with Windows AFAIK. Then there's libpq++, the old C++ frontend, and if you've got a fairly modern compiler, there's the newer libpqxx. Both are on GBorg. Jeroen