Hello Everybody,
I have searched the forum but didnt find an answer for this question (or maybe i used a wrong search criteria?!)
Anyway, I created a DLL with Visual Basic Express edition 2005 "thats what the extension says " and i can not use it with AMS as it gives error number 2401 Failed to find the specified function within the DLL .. This might be funny as it's my first time to use Visual basic in any other form than Windows Application ..
Thats the vb code
and the AMS one
this is so simple as i am just trying to create dlls to get experience before college !
Thanks in advance
Yours,
Galal
I have searched the forum but didnt find an answer for this question (or maybe i used a wrong search criteria?!)
Anyway, I created a DLL with Visual Basic Express edition 2005 "thats what the extension says " and i can not use it with AMS as it gives error number 2401 Failed to find the specified function within the DLL .. This might be funny as it's my first time to use Visual basic in any other form than Windows Application ..
Thats the vb code
Code:
Public Class Class1 Function add(ByVal a, ByVal b, ByVal c) Dim total = a + b + c Return total End Function End Class
Code:
a = Input.GetText("a"); b = Input.GetText("b"); c = Input.GetText("c"); a2 = String.ToNumber(a); b2 = String.ToNumber(b); c2 = String.ToNumber(c); result = DLL.CallFunction("AutoPlay\\Docs\\Add.dll", "add()", ""..a2..","..b2..","..c2, DLL_RETURN_TYPE_INTEGER, DLL_CALL_CDECL); Input.SetText("Input4", result);
Thanks in advance
Yours,
Galal
Comment