Hi,
I'm having a bit of a problem with DLLs.
I have a DLL, that I have created in VB as follows....
1) Create ActiveX DLL
2) Made the Instancing 'GlobalMultiUse'
3) Created a sub
Public Sub rob()
Msgbox("Hello"
End Sub
4) Compiled the DLL and moved it to the same dir as where I will create the next project. (exe)
5) Registered it using regsvr32, but I dont think this is needed because I'm in Windows 2000.
Then I created another VB application (standard exe) to try to test my DLL, before I use it in another language.
I created a module and put the following in it...
Public Declare Sub rob Lib "project1.dll" ()
and then I put the following in the Click event of a button
rob
When I click the button I get the error message....
Can't find DLL entry point rob in project1.dll
I dont want to include it as a reference as this is not the way I wanted to test it. But... It does seem to work if its included as a reference.
Anyone any ideas on what I have done wrong?
Thanks,
Rob Donovan.
I'm having a bit of a problem with DLLs.
I have a DLL, that I have created in VB as follows....
1) Create ActiveX DLL
2) Made the Instancing 'GlobalMultiUse'
3) Created a sub
Public Sub rob()
Msgbox("Hello"
End Sub
4) Compiled the DLL and moved it to the same dir as where I will create the next project. (exe)
5) Registered it using regsvr32, but I dont think this is needed because I'm in Windows 2000.
Then I created another VB application (standard exe) to try to test my DLL, before I use it in another language.
I created a module and put the following in it...
Public Declare Sub rob Lib "project1.dll" ()
and then I put the following in the Click event of a button
rob
When I click the button I get the error message....
Can't find DLL entry point rob in project1.dll
I dont want to include it as a reference as this is not the way I wanted to test it. But... It does seem to work if its included as a reference.
Anyone any ideas on what I have done wrong?
Thanks,
Rob Donovan.