|
-
Apr 9th, 2000, 06:30 PM
#1
Thread Starter
Hyperactive Member
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??
Onerrorgoto
Dont be to optimistic, the light at the end of the tunnel might be a train
-
Apr 9th, 2000, 09:44 PM
#2
Thread Starter
Hyperactive Member
OK I figured it out
Since VB don´t create True Dll's you cant connect to them thru Declare statement.
You have to use reference's to connect to a Dll made in VB.
Please correct me if I'm Totally wrong here.
Onerrorgoto
Dont be to optimistic, the light at the end of the tunnel might be a train
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|