When I did this I found that
- All the exported functions needed to be "stdcall".
- VB must refer to the DLL functions using the exact same case (very
un-VB!) otherwise it won't find them.
Here is what the VB code looked like (vb stands for something else, not
visual basic, in the context of our application)
'vbdriver.dll must be in search path -- best to place in %WinSys%
Declare Function vbGetDllVersion Lib "vbdriver.dll" () As Integer
And the DLL declaration of vbGetDllVersion was:
function vbGetDllVersion : integer; stdcall;
(and it was exported of course)
Hope that helps
Mike
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of [EMAIL PROTECTED]
> Sent: Wednesday, 4 October 2000 1:00
> To: Multiple recipients of list delphi
> Subject: [DUG]: Calling Delphi DLLs in VB
>
>
> Hi again.
>
> I found the answer to my last question....it can be done with
> some fiddeling.
>
> But right now, I want to call the DLL I have just created in Delphi in VB.
> When I do this, it whinges a bout the entrypoint not existing,
> but this triggered something in the back of my mind that you have
> to do a something a little special to be able to call teh DLL in vb.
>
> Can anyone else remember what this might be ?
>
> Cheers, Jeremy Coulter
>
>
>
> Jeremy Coulter (Manager)
> Visual Software Solutions
> Christchurch, New Zealand
> PH 03-3521595
> FAX 03-3521596
> MOBILE 021-2533214
> www.vss.co.nz
>
> ------------------------------------------------------------------
> ---------
> New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED]
> with body of "unsubscribe delphi"
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"