Re: Calling C++ DLL from VB
From: Ralph (msnews.20.nt_consulting32_at_spamgourmet.com)
Date: 02/14/05
- Next message: Ralph: "Re: Calling C++ DLL from VB"
- Previous message: Peter Aitken: "Calling C++ DLL from VB"
- In reply to: Peter Aitken: "Calling C++ DLL from VB"
- Next in thread: Ralph: "Re: Calling C++ DLL from VB"
- Reply: Ralph: "Re: Calling C++ DLL from VB"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 14 Feb 2005 07:56:50 -0600
"Peter Aitken" <paitken@CRAPnc.rr.com> wrote in message
news:e9ZQpopEFHA.2180@TK2MSFTNGP12.phx.gbl...
> I am trying to call functions in a DLL that is supplied by a hardware
> manufacturer. In a C++ program everything works just fine. In VB however
> there is a problem - the program cannot find the entry point in the DLL. I
> declare the function as usual:
>
> Public Declare Function fdOpen lib "fglove.dll" (port As String) As Long
>
> But when I call the function I get this error:
>
> Run Time Error 453 - cannot find entry point fdOpen in fglove.dll
>
> I have double-checked the spelling and capitalization of the function
name.
> Any ideas how I can fix this?
>
> Thanks
>
> --
> Peter Aitken
>
> Remove the crap from my email address before using.
>
You say it works fine in C++?
Post the declaration in the header file you use to compile your C++
application.
It is possible the function is not _stdcall. Also I suspect it would be
interesting to see how that "String" was declared.
-ralph
- Next message: Ralph: "Re: Calling C++ DLL from VB"
- Previous message: Peter Aitken: "Calling C++ DLL from VB"
- In reply to: Peter Aitken: "Calling C++ DLL from VB"
- Next in thread: Ralph: "Re: Calling C++ DLL from VB"
- Reply: Ralph: "Re: Calling C++ DLL from VB"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|