G
Guest
Hy group
I've a declaration of a function where I point to a .dll file. But I'd like
to connect to the .dll file using a variable. See the example for more
information.
Now, I'm using:
Declare Function LDBUser_GetUsers Lib "C:\CountUsersConnectedToDatabase.DLL" _
(lpszUserBuffer() As String, ByVal lpszFilename As String, _
ByVal nOptions As Long) As Integer
But I'de like to put the "C:\CountUsersConnectedToDatabase.DLL" in a string
because it will probably change of location. I allready tried the following
but it didn't work.
Declare Function LDBUser_GetUsers Lib strPathDLL_
(lpszUserBuffer() As String, ByVal lpszFilename As String, _
ByVal nOptions As Long) As Integer
Does anybody has an idea?
Thanxs
I've a declaration of a function where I point to a .dll file. But I'd like
to connect to the .dll file using a variable. See the example for more
information.
Now, I'm using:
Declare Function LDBUser_GetUsers Lib "C:\CountUsersConnectedToDatabase.DLL" _
(lpszUserBuffer() As String, ByVal lpszFilename As String, _
ByVal nOptions As Long) As Integer
But I'de like to put the "C:\CountUsersConnectedToDatabase.DLL" in a string
because it will probably change of location. I allready tried the following
but it didn't work.
Declare Function LDBUser_GetUsers Lib strPathDLL_
(lpszUserBuffer() As String, ByVal lpszFilename As String, _
ByVal nOptions As Long) As Integer
Does anybody has an idea?
Thanxs