DLL Hell
I don't know if this has been discuss. If it has, please point me to the right thread.
I have a Access form with a button. If clicked, it'll call a function which resides in an external DLL. But when I run it, there's a run time error saying that the DLL is not found. Does anybody know I do wrong? It worked last week but now it stopped work. PLEASE HELP!! I would really appreciated. Here is what I did
In a module, I declare the function as below
Public Declare Function IsothermModel Lib "DllIsothermModel.dll" _
(ByVal n As Long, ByVal t As Double, ByVal P0 As Double, P As Double, Q As Double, modelindex As Long, par As Double) As Long
Then call it in the click procedure
If (IsothermModel(n, t, P0, P(0), Q(0), modelindex, par(0)) <> 0) Then
Me![Model] = modelindex
end if
What am i doing wrong? I have the DLL save under the same the directory as the database file.
|