Re: Problem with Declare or dll
- From: "Ralph" <nt_consulting64@xxxxxxxxx>
- Date: Mon, 22 May 2006 09:21:57 -0500
<Jeffery> wrote in message news:uIHFhXafGHA.3488@xxxxxxxxxxxxxxxxxxxxxxx
Hi group,
I want to use a library file in my vb program. The library file EdrLib.dll
has been copied to the vb project directory. (this library is taken from
Petzold's Windows Programming Chapter 21).
I then added a declare statement as follows
Public Declare Sub EdrCenterTextA Lib "EdrLib.dll" _
(ByVal a As Long, _
ByVal a1 As Long, _
ByVal a2 As Long)
a,a1,a2 are pointers, so - long - in vb.
Now, when I call the function from my form I get this error message:
Run time error 453
Can't find dll entry point EdrCenterTextA in Edrlib.dll
Any ideas?
Don't have that book around here.
Publish the exported signature of the function as well as the .def file
definition.
In the meantime check the spelling of the function and provide a full path
for the library - eg, instead of "EdrLib.dll", use
"c:\vbproject\edrlib.dll".
-ralph
.
- Follow-Ups:
- Re: Problem with Declare or dll
- From: Jeffery
- Re: Problem with Declare or dll
- References:
- Problem with Declare or dll
- From: Jeffery
- Problem with Declare or dll
- Prev by Date: Re: Want to Early Bind instead of Late Bind an IE Object
- Next by Date: Re: using mpeg2lib.dll with VB6
- Previous by thread: Problem with Declare or dll
- Next by thread: Re: Problem with Declare or dll
- Index(es):
Relevant Pages
|