X-Original-To: pgsql-interfaces@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 2BDC5476300 for ; Sat, 12 Apr 2003 14:14:01 -0400 (EDT) Received: from mx3.absolight.com (mx3.absolight.net [212.43.217.9]) by postgresql.org (Postfix) with ESMTP id DE2EE475F2C for ; Sat, 12 Apr 2003 14:13:59 -0400 (EDT) Received: by mx3.absolight.com (Postfix, from userid 1007) id 494D929FB; Sat, 12 Apr 2003 20:14:12 +0200 (CEST) X-Original-To: pgsql-interfaces@postgresql.org Received: from sauron.in.mat.cc (sauron.in.mat.cc [212.43.217.122]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (Client did not present a certificate) by mx3.absolight.com (Postfix) with ESMTP id 1010329FC; Sat, 12 Apr 2003 20:14:11 +0200 (CEST) Date: Sat, 12 Apr 2003 20:14:15 +0200 From: Mathieu Arnold To: =?ISO-8859-1?Q?St=E9phane_Pinel?= Cc: pgsql-interfaces@postgresql.org Subject: Re: libpq.dll Message-ID: <180377765.1050178455@sauron.in.mat.cc> In-Reply-To: References: X-Mailer: Mulberry/3.0.3 (Win32) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Spam-Status: No, hits=-15.5 required=5.0 tests=BAYES_10,IN_REP_TO,REFERENCES autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/111 X-Sequence-Number: 4050 --Le 12/04/2003 19:32 +0200, St=E9phane Pinel =E9crivait : |=20 | Le samedi, 12 avr 2003, =E0 19:20 Europe/Paris, Mathieu Arnold a =E9crit : |=20 |>=20 |>=20 |> --Le 12/04/2003 19:16 +0200, St=E9phane Pinel =E9crivait : |>=20 |> | Is there a libpq.dll that I can link to a Visual C++ .Net project |> | exactly the way I do it with libpq on my Darwin box ? |> |=20 |> | Thanks. |>=20 |> I guess you should have a look at : |> |>=20 |=20 | Thanks |=20 | I saw this project but I read: |=20 | "Npgsql is implemented in C#" |=20 | I just want to use C. To be more specific, I've developed a C client on | Darwin, using libpq.lib and I would like to re-use my code (calls to | libpq C lib) in a Visual C++ .Net (Win32) project. The ideal should be | to have not much work to port it ;-) |=20 | But since I'm not a win32 hacker, I would like to know if I can use a | .dll or static lib that could help me to do that without hacking in a | win32 environment that I don't know. Implemented !=3D can be used with The thing is that I believe that you could find a libpq.dll from the win32 postgresql port, but, you're using V .Net, and so, you should use a .Net data provider, thus, npgsql, which is just that. If you get npgsql, you'll have a nice dll you can add to your project's references, and then,=20 using Npgsql; if you use C#, or in your case, well, hum, I'm not quite good enough with visual studio to tell you how to use a dll with your project, but it must be possible in a way or another. --=20 Mathieu Arnold