Re: libpq.dll

From: "Magnus Hagander" <mha(at)sollentuna(dot)net>
To: Stéphane Pinel <spinel(at)noos(dot)fr>, "Mathieu Arnold" <mat(at)mat(dot)cc>
Cc: <pgsql-interfaces(at)postgresql(dot)org>
Subject: Re: libpq.dll
Date: 2003-04-12 19:11:04
Message-ID: 81124B76C0CF364EBAC6CD213ABEDEF750A056@ARGON.edu.sollentuna.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

> > 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,
> > 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.
> >
>
> So there is no lib that can be linked without other stuff
> just like we
> use to do
> with libpq.a on Darwin (or Unix) ?
>
> My app doesn't handle any GUI stuff. It just a libpq C
> wrapper. My main
> need
> is to be able to execute "conn = PQconnectdb(cinfo);" etc... in a
> Visual C++
> project.

This sounds like you are developing a Native Application using VC++ .Net. Npgsql (and all other .Net classes) are only for what MS calls "Managed Applications". You can write managed apps in C#, VB, C++ or whatever. But only VC++ can create a native application. A native application in VC++.Net is basically the same kind of apploication you would create in any previous version of Visual Studio.

Anyway, to the point. Check out the "Installing on Windows" part of the Administrators Guide for instructions on how to build the DLL and LIB files necessary to use libpq from a native app.
http://www.postgresql.org/docs/view.php?version=7.3&idoc=0&file=install-win32.html

//Magnus

Browse pgsql-interfaces by date

  From Date Subject
Next Message Darren Mackay 2003-04-13 20:21:08 plpython module loading errors
Previous Message Stéphane Pinel 2003-04-12 18:47:46 Re: libpq.dll