Buffman
10-03-2006, 11:10 AM
Hi Everyone,
I'm having a problem with a simple DLL I wrote, and I'm hoping someone could point me in the right direction...
When I call the DLL from AMS, I receive a 2401 error - "Failed to find the specified function within the DLL."
sReturn = DLL.CallFunction("Autoplay\\Docs\\Test.dll", "Number", "", DLL_RETURN_TYPE_INTEGER, DLL_CALL_STDCALL);
In troubleshooting, I've made the logic as simple as possible, but still receive the error. I'm thinking its because VB .Net requires functions to be inside a class and AMS can't see that. Any thoughts?
DLL Source:
Public Class Class1
Public Function Number() As Integer
Dim i As Integer
i = 9
Return i
End Function
End Class
I'm having a problem with a simple DLL I wrote, and I'm hoping someone could point me in the right direction...
When I call the DLL from AMS, I receive a 2401 error - "Failed to find the specified function within the DLL."
sReturn = DLL.CallFunction("Autoplay\\Docs\\Test.dll", "Number", "", DLL_RETURN_TYPE_INTEGER, DLL_CALL_STDCALL);
In troubleshooting, I've made the logic as simple as possible, but still receive the error. I'm thinking its because VB .Net requires functions to be inside a class and AMS can't see that. Any thoughts?
DLL Source:
Public Class Class1
Public Function Number() As Integer
Dim i As Integer
i = 9
Return i
End Function
End Class