X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 8ACDF329F55 for ; Tue, 28 Sep 2004 15:12:25 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 48250-05 for ; Tue, 28 Sep 2004 14:12:12 +0000 (GMT) Received: from gk-us2.michelin.com (gk-us2.michelin.com [156.65.14.19]) by svr1.postgresql.org (Postfix) with ESMTP id 3EFEB32A162 for ; Tue, 28 Sep 2004 15:12:12 +0100 (BST) Received: from ONCMH1.onc.michelin.com (unverified) by gk-us2.michelin.com (Content Technologies SMTPRS 4.3.10) with ESMTP id for ; Tue, 28 Sep 2004 10:01:38 -0400 Received: from oncmtap1.onc.michelin.com by oncmh1.onc.michelin.com with ESMTP for pgsql-odbc@postgresql.org; Tue, 28 Sep 2004 10:04:14 -0400 Received: from oncems01.onc.michelin.com ([156.65.125.150]) by oncmtap1.onc.michelin.com (Netscape Messaging Server 4.15) with ESMTP id I4R8MI00.DLK for ; Tue, 28 Sep 2004 10:08:42 -0400 Received: from us.michelin.com (unverified) by oncems01.onc.michelin.com (Content Technologies SMTPRS 4.2.5) with ESMTP id ; Tue, 28 Sep 2004 10:08:42 -0400 Message-Id: <41597068.407@us.michelin.com> Date: Tue, 28 Sep 2004 10:08:40 -0400 From: "Greg Campbell" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Dave Page Cc: Randy Yates , pgsql-odbc@postgresql.org Subject: Re: Non-Proprietary ODBC Examples on Win32? References: In-Reply-To: Content-Type: multipart/mixed; boundary="------------060400050307040209010002" X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.1 tagged_above=0.0 required=5.0 tests=RCVD_IN_RFCI X-Spam-Level: X-Archive-Number: 200409/85 X-Sequence-Number: 4460 This is a multi-part message in MIME format. --------------060400050307040209010002 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 > > --------------060400050307040209010002 Content-Type: text/x-vcard; charset=utf8; name="greg.campbell.vcf" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="greg.campbell.vcf" 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 --------------060400050307040209010002--