Error - Could not find the entrypoint ..(3260)

brian0473

New Member
This is my first time doing this -- I am trying to make a call to a VERY simple vb6 .dll from Progress 9.1D and I am getting the following error:

Error - Could not find the entrypoint _fnEncrypt@0 (3260)

The code I am using to call the .dll is below:

/* Run the DLL function */
RUN fnEncrypt.
/* Procedure Definition */
PROCEDURE fnEncrypt EXTERNAL "UniCrypt.dll":
END.

The vb6 .dll code is as follows:
Public Function fnEncrypt()
MsgBox "Hello"
End Function


I've already tried some suggestions that were posted a while back but nothing has helped. I would really appreciate anyone's help on this one!!
 
Hi, did you try to "register" your dll ? If not try to execute
regsvr32 <dll path>\<dll name>
from the command line.
Stéphane.
 
3260 normally occurs because the method is not found (obviously).


So the only thing I can think of at the moment (apart from Stephane's suggestion) is that there is a name/case mismatch somewhere between:

PROCEDURE fnEncrypt EXTERNAL "UniCrypt.dll":

And your dll Name and procedure definitions.


Clearly that is not the case with the VB code you've posted, so my only suggestion is to check your DLL name is UniCrypt (exact case).


Sorry if this is not much help.
 
Back
Top