-
Late Binding Newbie ...
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... :eek:
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 ? :confused:
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
-
1 Attachment(s)
Doh !
-
Set MyObj =CreateObject("Project1.C_Message")
It goes by what you named the VB project, not the dll filename.