Click to See Complete Forum and Search --> : Dll in VBasic


GetFree
September 5th, 2001, 02:58 PM
hi every one

i wonder if someone can help me here
i'm programing in access with visual basic codes and i included a function of a dll in the module section
Public Declare Function GenerateLicenceID Lib "C:\Final\bin\vproc.dll" (ByVal sBaseID As String, ByVal duration As Integer, ByRef sLicenceID As String)

but when i call the function i get an error can't find entry of c:\Final\bin\vproc.dll
can someone help please

KelliDease
September 5th, 2001, 03:34 PM
Remove the Public Declare Function line from your code.
On the Tools menu select "References" and set a reference to your dll here.

In the code do something similar to the following:

Public objTest as New vproc [or whatever the name of the object is]
objTest.GenerateLicenseID(?,?,? [insert parameter values])

Hope this helps!
-Kelli