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 432BD8BA05C for ; Thu, 10 Feb 2005 15:23:07 +0000 (GMT) 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 68167-01 for ; Thu, 10 Feb 2005 15:22:37 +0000 (GMT) Received: from mail21.nhs.uk (mail21.nhs.uk [62.6.139.215]) by svr1.postgresql.org (Postfix) with ESMTP id 1733C8BA0B5 for ; Thu, 10 Feb 2005 15:22:40 +0000 (GMT) Received: from [10.191.254.3] (helo=relayint1.nhs.uk) by mail21.nhs.uk with esmtp (MTC MTA) id 1CzG9O-0004ID-PB for pgsql-odbc@postgresql.org; Thu, 10 Feb 2005 15:22:38 +0000 Received: from relay.nhs.uk (194.62.42.144) by relayint1.nhs.uk (Syntegra-I1 7.0.008) id 42001304002AE50B for pgsql-odbc@postgresql.org; Thu, 10 Feb 2005 15:22:38 +0000 Received: from smtp1.tayside.scot.nhs.uk (10.252.0.22) by relay.nhs.uk (Syntegra-4 7.0.008) (authenticated as smtp1_tayside_scot_nhs_uk@es2002.nhs.uk) id 420A3C38000A798C for pgsql-odbc@postgresql.org; Thu, 10 Feb 2005 15:22:38 +0000 Received: from smtp1.tayside.scot.nhs.uk (localhost [127.0.0.1]) by localhost.tayside.scot.nhs.uk (Postfix) with ESMTP id 756BB1B35 for ; Thu, 10 Feb 2005 15:22:37 +0000 (GMT) Received: from gonzalo.tuht.scot.nhs.uk (gonzalo.tuht.scot.nhs.uk [10.252.32.96]) by smtp1.tayside.scot.nhs.uk (Postfix) with ESMTP id 58D1F1B2E for ; Thu, 10 Feb 2005 15:22:37 +0000 (GMT) Received: from [192.168.1.46] (localhost [127.0.0.1]) by gonzalo.tuht.scot.nhs.uk (iPlanet Messaging Server 5.2 HotFix 1.25 (built Mar 3 2004)) with ESMTP id <0IBP00IF3C1OOZ@gonzalo.tuht.scot.nhs.uk> for pgsql-odbc@postgresql.org; Thu, 10 Feb 2005 15:22:37 +0000 (GMT) Date: Thu, 10 Feb 2005 15:22:37 +0000 From: Paul Cochrane Subject: Re: Compiling using Visual Studio 2003 In-reply-to: To: pgsql-odbc@postgresql.org Message-id: <420B7C3D.8030507@tuht.scot.nhs.uk> Organization: TORT Centre MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) References: X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.28 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_ABUSE X-Spam-Level: X-Archive-Number: 200502/57 X-Sequence-Number: 4947 Dave Page wrote: > > > > >>-----Original Message----- >>From: pgsql-odbc-owner@postgresql.org >>[mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of Paul Cochrane >>Sent: 10 February 2005 14:32 >>To: pgsql-odbc@postgresql.org >>Subject: Re: [ODBC] Compiling using Visual Studio 2003 >> >>Dave Page wrote: >> >> >> >>>>Off topic, FYI, I couldn't get the command line nmake to >>>> >>>> >>work. I did >> >> >>>>try putting in extra search paths & stuff but gave up shortly >>>>thereafter >>>>and continued my fight with the IDE. >>>> >>>> >>>> >>>> >>>That's how I build it all the time. Did you run vcvars32.bat >>> >>> >>first? That >> >> >>>should be all that is needed. >>> >>> >>> >>> >>> >>I'm Thick. What is this file? It doesn't seem come with psqlodbc and >>there is no mention of it in the doc on the GBORG site about >>compiling >>the driver. I was changing to the extracted dir & trying nmake..... >> >> > >It sets up the DOS environment for VC and is part of Visual Studio. On >my system I have it in: > >C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin (VS.NET 2K3) > >And > >C:\Program Files\Microsoft Visual Studio\VC98\Bin (VS6) > >Note that if you can it's better to use VC++6 as the required runtimes >are generally already on most machines. > > Good show. I can now compile using the makefile. Maybe you can add this info to run vcvar32.bat to the readme.txt file? I did read this file but knew nothing about running the batch file beforehand (not knowing much about visual studio). >>I can fix it in code but this would break the compatibility of using >>either the paradox tables or postgres tables. I would have to >>have two >>different versions of each form etc & record many lines of >>code to say >>"If in postgres add a public. to every table name" which is a >>huge pest >>& I don't want to have two version of each form to try & keep in sync >>with each other. >> >> >You can't abstract it into a macro or function - i.e. in your forms have >something like > >EXECUTE("SELECT * FROM " + FixName("MyTable")); > >(bearing in mind I know nothing about Paradox)? > > SQL querying in paradox is straight forward. I can just give it the name of the table without any schema. It the rest of the interface & data models which breaks things when schemas are present in the table names. Querying Postgres is quite simple to get working but the data models are another story. It's a bloody pest really. Sometimes I wish I knew nothing about paradox as well!! -- Paul Cochrane (paul.m.cochrane@tuht.scot.nhs.uk) +-------------------------------------------------------- | Tayside Orthopaedic & Rehabilitation Technology Centre | Ninewells Hospital & Medical School | Dundee, Scotland, UK. | DD1 9SY | Phone: Internal: 36284 | External: +44 (1382) 496284 | Fax: +44 (1382) 496322 +--------------------------------------------------------