I have a dll with some objects. How can I do to load, first my external .dll, and then its objects from un .exe project?
Printable View
I have a dll with some objects. How can I do to load, first my external .dll, and then its objects from un .exe project?
Dim myobj as Object
Set myobj = CreateObject("dllprojectname.classname")
I am not really sure on this but you could try it ...
load it as a reference and use its commands or whatever
ex.. Msn Messenger
--------------------------------
----------------------------------------VB Code:
Public WithEvents MSN As MsgrObject ' delcaring as object Dim scroll_name As String Private Sub Command1_Click() scroll_name = Text1.Text If MSN.LocalState = MSTATE_OFFLINE Then Exit Sub MSN.Services.PrimaryService.FriendlyName = scroll_name ' using its commands End Sub Private Sub Form_Load() Set MSN = New MsgrObject End Sub
Ah! OK. Thanks....Quote:
Originally posted by Cander
Dim myobj as Object
Set myobj = CreateObject("dllprojectname.classname")