I have VBA code calling an external dll file, within the dll exist method "getErrorCo de".
I would like to know how I should call the dll file from C#.
with in my code I call the method getErrorCode like this
thanks in advance
Daniel
I would like to know how I should call the dll file from C#.
Code:
Private Declare Function getErrorCode Lib "c:\master.dll" (ByVal F1 As String, ByVal F2 As Long, ByVal F3 As Long) As Long
Code:
ErrCode = getErrorCode(fileName, 13, 1)
Daniel
Comment