HELP PLEASE!!!
Okay, I've just realised - I can't do late binding. I've attached a very simple sample, and would be very grateful if someone could help me please...
Okay, I have a dll compiled - MyDll.dll, and gave it the name of C_Message. How can I call this in another project without the VB Project Menu > References / Late Binding please ?
I've done a html sample, but just a normal vb sample would be excellent if someone could tell me where I'm going wrong :
Code:
Dim MyObj as object
Set MyObj =CreateObject("MyDll.C_Message")
Call MyObj.HelloMessage
Is what I'm using to load / call this. In the actual class / dll, the only code is :
Code:
Public sub HelloMessage()
MsgBox "Hello World !"
End Sub
Last edited by alex_read; Apr 25th, 2001 at 10:49 AM.
Please rate this post if it was useful for you!
Please try to search before creating a new post,
Please format code using [ code ][ /code ], and
Post sample code, error details & problem details
Please rate this post if it was useful for you!
Please try to search before creating a new post,
Please format code using [ code ][ /code ], and
Post sample code, error details & problem details
It goes by what you named the VB project, not the dll filename.
Josh
Get these: MozillaOperaOpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.