Thread: Simple way to connect from Win32 app

Simple way to connect from Win32 app

From
Michael Vodep
Date:
Hi!
I am looking for a simple way to build an application on Windows - complied
with VC++ 6. I have read, that there are many problems with the libpq++ -
just under Windows :p
I dont want to use ODBC - so i hope, u can show me a HOWTO or a way, how to
build such an application :)
I have a FreeBSD machine - so is possible to build libpq.dll for Windows?

Thanks!!
michael (noob)
sorry for that  bad english :)


-- 
+++ GMX - Mail, Messaging & more  http://www.gmx.net +++
Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!



Re: Simple way to connect from Win32 app

From
"Jeroen T. Vermeulen"
Date:
On Wed, Jun 18, 2003 at 07:36:45PM +0200, Michael Vodep wrote:

> I am looking for a simple way to build an application on Windows - complied
> with VC++ 6. I have read, that there are many problems with the libpq++ -
> just under Windows :p

Have you looked at the new C++ interface, libpqxx?  Visual C++ 6.0 has 
some problems with that, but it may just do what you need.  And even that
compiler will do the job if you upgrade it and enable a workaround macro
in libpqxx.

Take a look at http://pqxx.tk/


Jeroen



Re: Simple way to connect from Win32 app

From
"Rick Gregory"
Date:
Hi Michael,

If you download the source, there is a win32.mak file in
/postgresql-7.3./src/interfaces/libpq

This can be used to make a vc6 project that will build both a static and a
dynamic version of the libpq library.

You will have to make minor modifications to some of the header files in
other folders, but these are obvious from the build messages.

Rick Gregory
-----Original Message-----
From: pgsql-interfaces-owner@postgresql.org
[mailto:pgsql-interfaces-owner@postgresql.org]On Behalf Of Michael Vodep
Sent: Wednesday, June 18, 2003 13:37
To: pgsql-interfaces@postgresql.org
Subject: [INTERFACES] Simple way to connect from Win32 app

Hi!
I am looking for a simple way to build an application on Windows - complied
with VC++ 6. I have read, that there are many problems with the libpq++ -
just under Windows :p
I dont want to use ODBC - so i hope, u can show me a HOWTO or a way, how to
build such an application :)
I have a FreeBSD machine - so is possible to build libpq.dll for Windows?

Thanks!!
michael (noob)
sorry for that  bad english :)


--
+++ GMX - Mail, Messaging & more  http://www.gmx.net +++
Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!


---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster