Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aqeEU-0004LH-OZ for pgsql-odbc@arkaria.postgresql.org; Thu, 14 Apr 2016 10:10:42 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1aqeEU-0004l6-6F for pgsql-odbc@arkaria.postgresql.org; Thu, 14 Apr 2016 10:10:42 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1aqeE7-0003wc-07 for pgsql-odbc@postgresql.org; Thu, 14 Apr 2016 10:10:19 +0000 Received: from email.boi.at ([85.193.140.130]) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_CAMELLIA_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1aqeE3-000369-KS for pgsql-odbc@postgresql.org; Thu, 14 Apr 2016 10:10:18 +0000 Received: from email (localhost [127.0.0.1]) by email.boi.at (BOI_MailServer) with ESMTP id A2FF7AE22A6; Thu, 14 Apr 2016 12:10:12 +0200 (CEST) Received: from [192.168.11.10] (intfw.boi.at [192.168.1.2]) by email.boi.at (BOI_MailServer) with ESMTPSA id 598BFAE22A4 for ; Thu, 14 Apr 2016 12:10:12 +0200 (CEST) Subject: Re: [MASSMAIL]Re: use psqlodbc on Windows without Windows driver manager? To: pgsql-odbc@postgresql.org References: <570B5332.8040406@boi.at> <0A3221C70F24FB45833433255569204D1F54C10F@G01JPEXMBYT05> <570C98AC.8080907@boi.at> <570E07EE.7@prisma-computer.de> <0A3221C70F24FB45833433255569204D1F55026F@G01JPEXMBYT05> <570F47EA.2030209@prisma-computer.de> From: "Dieter Mueller (BOI GmbH)" Organization: BOI GmbH Message-ID: <570F6C86.5040007@boi.at> Date: Thu, 14 Apr 2016 12:10:14 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: <570F47EA.2030209@prisma-computer.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-KLMS-Rule-ID: 4 X-KLMS-Message-Action: clean X-KLMS-AntiSpam-Status: not scanned, disabled by settings X-KLMS-AntiSpam-Interceptor-Info: not scanned X-KLMS-AntiPhishing: Clean, 2016/04/12 09:02:30 X-KLMS-AntiVirus: Kaspersky Security 8.0 for Linux Mail Server, version 8.0.1.705, bases: 2016/04/13 23:58:00 #7495311; khse: 2014-01-23 rollback X-KLMS-AntiVirus-Status: Clean, skipped X-Pg-Spam-Score: -2.9 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org Hello Takayuki and Malte, there is another way: you can create an import library of the ODBC driver (using MS tools DUMPBIN and LIB), and link your application with the resulting .LIB-file instead of Microsoft's odbc32.lib. Kind regards, Dieter Mueller Am 14.04.2016 um 09:34 schrieb Prisma Computer - M. Neumann: > Hello Takayuki, > > yes it is possible, we use it. > > But it is a little bit tricky, because you must load the driver dll by > yourself with the loadLibrary function. After that you have to import > alle your needed dll-functions with the GetProcAddress. > > Kind Regards, > Malte > > > Am 14.04.2016 um 02:16 schrieb Tsunakawa, Takayuki: >> Hello, Malte, >> >> >> Dieter wants to use the driver without registering it in the >> registry. Is it really possible? I know I can connect to the >> database without "registering the data source" with the connection >> string for SQLDriverConnect() like this: >> >> DRIVER={PostgreSQL ANSI >> Driver};Servername=127.0.0.1;Port=5432;UID=xxx;Password=yyy;Database=postgres >> >> >> FYI, I tried setting the absolute path of the driver DLL file to >> DRIVER keyword, but it didn't work. >> >> Regards >> Takayuki Tsunakawa >> >> >>> -----Original Message----- >>> From: pgsql-odbc-owner@postgresql.org >>> [mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of Prisma Computer - >>> M. Neumann >>> Sent: Wednesday, April 13, 2016 5:49 PM >>> To: pgsql-odbc@postgresql.org >>> Subject: Re: [ODBC] use psqlodbc on Windows without Windows driver >>> manager? >>> >>> Hello Dieter, >>> >>> it is possible to use the odbc-driver without the windows driver >>> manager. >>> >>> You only need to change the connection-function. Instead of Calling >>> SQLConnect use SQLDriverConnect with the correct connectionstring. >>> >>> Kind regards, >>> Malte >> > -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc