From stephen@sealteam.demon.co.uk Fri Jul 23 00:16:38 1999 Received: from finch-post-12.mail.demon.net (finch-post-12.mail.demon.net [194.217.242.41]) by hub.org (8.9.3/8.9.3) with ESMTP id UAA01494 for ; Thu, 22 Jul 1999 20:16:38 -0400 (EDT) (envelope-from stephen@sealteam.demon.co.uk) Received: from sealteam.demon.co.uk ([158.152.180.187] helo=station1.Marketrends.net) by finch-post-12.mail.demon.net with smtp (Exim 2.12 #1) id 117T0r-000JiW-0C for pgsql-interfaces@hub.org; Fri, 23 Jul 1999 00:16:34 +0000 Message-ID: <00e501bed4a0$514cdc00$bbb4989e@station1.Marketrends.net> From: "Stephen Martin Trans-Euro I.T Ltd" To: "pg-interfaces" Subject: libpq and VB Date: Fri, 23 Jul 1999 01:14:22 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_00E2_01BED4A8.B2403860" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 This is a multi-part message in MIME format. ------=_NextPart_000_00E2_01BED4A8.B2403860 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello I am attempting to create a Visual Basic header file in VB6 for = libpq.dll=20 I have extracted a list of exportable functions from the dll and started = to create a frame work like this.. Public Declare Function PQbackendPID Lib "libpq.dll" () Public Declare Function PQbinaryTuples Lib "libpq.dll" () Public Declare Function PQclear Lib "libpq.dll" () sofar so good, but I am running into Run time error 49 Bad DLL calling convention when I start to to try to flesh the = declarations out with parameters also some of the functions such as PQsetdbLogin=20 dont seem to be mentioned (or at least I cannot find it when I need to = see it) in the documentation. Has anyone else undertaken a task like this? Any guidance would be welcome .. Regards Stephen=20 ------=_NextPart_000_00E2_01BED4A8.B2403860 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello
I am attempting to create a Visual = Basic header=20 file in VB6 for libpq.dll
I have extracted a list of = exportable functions=20 from the dll and started to create
a frame work like = this..
 
Public Declare Function PQbackendPID = Lib=20 "libpq.dll" ()
Public Declare Function PQbinaryTuples Lib=20 "libpq.dll" ()
Public Declare Function PQclear Lib=20 "libpq.dll" ()
 
sofar so good,
 
but I am running into
 
Run time error 49
Bad DLL calling convention when I start to to try to = flesh the=20 declarations out with parameters
 
also some of the functions such as PQsetdbLogin =
dont seem to be mentioned (or at least I cannot find = it when I=20 need to see it)
in the documentation.
 
Has anyone else undertaken a task like = this?
Any guidance would be welcome ..
 
Regards Stephen
 
 
 
------=_NextPart_000_00E2_01BED4A8.B2403860-- From dpage@vale-housing.co.uk Fri Jul 23 07:38:17 1999 Received: from mail-relay.vale-housing.co.uk (root@vhousing.demon.co.uk [194.222.32.17]) by hub.org (8.9.3/8.9.3) with ESMTP id DAA78690 for ; Fri, 23 Jul 1999 03:38:17 -0400 (EDT) (envelope-from dpage@vale-housing.co.uk) Received: from woody.vale-housing.co.uk (woody.vale-housing.co.uk [192.168.1.51]) by mail-relay.vale-housing.co.uk (8.9.3/8.9.1) with ESMTP id IAA03927 for ; Fri, 23 Jul 1999 08:20:40 +0100 Received: by woody.vale-housing.co.uk with Internet Mail Service (5.5.2448.0) id ; Fri, 23 Jul 1999 08:20:39 +0100 Message-ID: From: Dave Page To: "'pgsql-interfaces@postgresql.org'" Subject: RE: [INTERFACES] libpq and VB Date: Fri, 23 Jul 1999 08:20:38 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) Content-Type: text/plain; charset="iso-8859-1" This is exactly the problem I was getting. I have been talking to someone however who thinks they can implement COM wrappers in VC++ so we may have something to play with soon... Regards, Dave. -- Dave Page, Network & Systems Manager, The Vale Housing Association Ltd. dpage@vale-housing.co.uk http://www.vale-housing.co.uk (Work) http://www.pgadmin.freeserve.co.uk/ (Home of pgAdmin) Beer can be a permanent solution - but only if you have enough of it! -----Original Message----- From: owner-pgsql-interfaces@postgreSQL.org [mailto:owner-pgsql-interfaces@postgreSQL.org]On Behalf Of Stephen Martin Trans-Euro I.T Ltd Sent: 23 July 1999 00:14 To: pg-interfaces Subject: [INTERFACES] libpq and VB Hello I am attempting to create a Visual Basic header file in VB6 for libpq.dll I have extracted a list of exportable functions from the dll and started to create a frame work like this.. Public Declare Function PQbackendPID Lib "libpq.dll" () Public Declare Function PQbinaryTuples Lib "libpq.dll" () Public Declare Function PQclear Lib "libpq.dll" () sofar so good, but I am running into Run time error 49 Bad DLL calling convention when I start to to try to flesh the declarations out with parameters also some of the functions such as PQsetdbLogin dont seem to be mentioned (or at least I cannot find it when I need to see it) in the documentation. Has anyone else undertaken a task like this? Any guidance would be welcome .. Regards Stephen