Results 1 to 3 of 3

Thread: Late Binding Newbie ...

  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

  2. #2

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

    Doh !

    Attached Files Attached Files

    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

  3. #3
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    Set MyObj =CreateObject("Project1.C_Message")

    It goes by what you named the VB project, not the dll filename.
    Josh
    Get these: Mozilla Opera OpenBSD
    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.

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