Results 1 to 3 of 3

Thread: Late Binding Newbie ...

Threaded View

  1. #1

    Thread Starter
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538

    Question 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...

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width