Hello Everyone.
I am making use of a external dll in my vb.net program. When i run the program as a application, everything works fine. But when i use the same dll in windows service program, written in vb.net i get System.DllNotFound exception. The code to use the external dll is as follows:
Private Declare Function MyFunction Lib "MyDll" (ByVal param as Integer) As Integer
MyDll.dll is registered and is stored in the following path :
D:/Applic/NewApp
Could you please tell me the correct usage of external dll in windows service.
Thanking You.
I am making use of a external dll in my vb.net program. When i run the program as a application, everything works fine. But when i use the same dll in windows service program, written in vb.net i get System.DllNotFound exception. The code to use the external dll is as follows:
Private Declare Function MyFunction Lib "MyDll" (ByVal param as Integer) As Integer
MyDll.dll is registered and is stored in the following path :
D:/Applic/NewApp
Could you please tell me the correct usage of external dll in windows service.
Thanking You.