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--