From: Greg Campbell <greg.campbell@us.michelin.com>
To: Dave Page <dpage@vale-housing.co.uk>
Cc: Randy Yates <yates@ieee.org>
Cc: pgsql-odbc@postgresql.org
Subject: Re: Non-Proprietary ODBC Examples on Win32?
Date: Tue, 28 Sep 2004 10:08:40 -0400
Message-ID: <41597068.407@us.michelin.com> (raw)
In-Reply-To: <E7F85A1B5FF8D44C8A1AF6885BC9A0E4306741@ratbert.vale-housing.co.uk>
References: <E7F85A1B5FF8D44C8A1AF6885BC9A0E4306741@ratbert.vale-housing.co.uk>
Get yourself an ODBC driver for Windows -- from the PostgreSQL site -- I
recommend version 7.3.2.
Set yourself up a Data Source Name. You can alternatively check the
PostgreSQL documentation on creating a connection string.
Then use MSDN or google up SQLAllocHandle and SQLConnect. There should
be C++ examples aplenty.
Dave Page wrote:
>
>
>
>
>>-----Original Message-----
>>From: pgsql-odbc-owner@postgresql.org
>>[mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of Randy Yates
>>Sent: 28 September 2004 14:50
>>To: pgsql-odbc@postgresql.org
>>Subject: [ODBC] Non-Proprietary ODBC Examples on Win32?
>>
>>Hi,
>>
>>Is there a C++ example somewhere of accessing an ODBC
>>datasource under win32 using only public/free libraries? I
>>think I can find the ODBC driver libraries OK, but finding a
>>free, public-source driver manager for win32 seems to be
>>problematic. iODBC and unixODBC don't run under win32 as far
>>as I know.
>>
>>Of course I may be totally hosed. I am completely new to
>>postgresql and ODBC programming. If my mental model is flawed
>>and I'm asking the wrong questions, please educate me.
>>
>>
>
>Modern Windows versions have a driver manager built in. I know it's not
>Open Source, but then neither is the rest of the OS. Also, as Microsoft
>wrote the standard, their implementation is pretty compliant :-)
>
>Check out msdn.microsoft.com for the ODBC SDK and documentation.
>
>Regards, Dave.
>
>---------------------------(end of broadcast)---------------------------
>TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
>
>
Attachments:greg.campbell.vcf (text/x-vcard, 281B) download
begin:vcard
fn:Greg Campbell
n:Campbell;Greg
org:Michelin North America;ENG-IT
adr;dom:;;2420 Two Notch Road;Lexington;SC;29071
email;internet:greg.campbell@us.michelin.com
title:Systems Engineer
tel;work:803-951-5561
tel;fax:803-951-5531
x-mozilla-html:FALSE
version:2.1
end:vcard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: greg.campbell@us.michelin.com, dpage@vale-housing.co.uk, yates@ieee.org
Subject: Re: Non-Proprietary ODBC Examples on Win32?
In-Reply-To: <41597068.407@us.michelin.com>
References: <E7F85A1B5FF8D44C8A1AF6885BC9A0E4306741@ratbert.vale-housing.co.uk> <41597068.407@us.michelin.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox