I'm calling a Dll thru a declare statement
declare function X lib "Siox.dll" alias "#3"(......)

and now we need to create our own Dll that would simulate what the "true" Dll is doing. And them use that Dll in our app to for a testing/training enviroment. That way we don't need to create a separate app for testing/training.

So I started with a small mathDll just to get the hang of it. After creating my Dll a made a refrence to it thru Project/references and used
Dim test as MyDLL
set test=new MyDll

text1.text=test.add(3,2) and it worket fine.
Now I wanted to use the Declare statement to connect to my dll.
Declare function MAth lib "mathDll.dll" (x as int, y as int)

text1.text=math(3,4) and I get an error
Error
Cannot find entrypoint math in mathDll.dll

Why??