Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems calling DLL

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi!

I need to call a dll through an Access2000 application. The DLL is named "barwin.dll" and it's located in the c:\windows\system directory.

The code that I used to call the DLL looks like:

- First, I declare the function in a module.

Declare Function Ean13 Lib "c:\windows\system\barwin.dll" (ByVal szRetorn$, ByVal szCodi$) As Long

- Next, I call the function when the user clicks a button and the call to the function is:

BARCODE = Ean13(ByVal szRetorn$, ByVal szCodi$)

When I make the call to this function, Access shows an error message which says that doesn't find the file "barwin.dll"

Please, if someone knows how to solve the problem, it will help me a lot!

Thanks.

Bye!

Isdan.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top