Results 1 to 7 of 7

Thread: Using unregistered COM DLL

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2006
    Posts
    2

    Using unregistered COM DLL

    I have a COM DLL and a TLB that are part of an installed 3rd party App. The 3rd party App does not register them and I want to be able to use them w/o having to be registered.

    How can I do this in VB6 and VB.NET?

    I assume I need to use loadlibrary but what do I do with the handle to get an object so I can access the objects properties and methods?

    Any code samples would be greatly appreciated.

    Thanks in advance.

  2. #2
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: Using unregistered COM DLL

    CreateObject() might be able to do it.
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

  3. #3

  4. #4
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: Using unregistered COM DLL

    I really thought I saw this done once.
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

  5. #5
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: Using unregistered COM DLL

    Could this be what you saw Dave?
    From MSDN:
    ...

    You can create an object on a remote networked computer by passing the name of the computer to the servername argument of CreateObject. That name is the same as the Machine Name portion of a share name: for a share named "\\\\MyServer\\Public," servername is "MyServer."

    The following code returns the version number of an instance of Excel running on a remote computer named MyServer:

    Dim xlApp As Object
    Set xlApp = CreateObject("Excel.Application", "MyServer")
    Debug.Print xlApp.Version

    If the remote server doesn’t exist or is unavailable, a run-time error occurs.

  6. #6
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: Using unregistered COM DLL

    Rhino, I never got a message from this response (yet again). I think this may be an example of DCOM? The Object would have had to be registered on the remote mnachine, and is not what I remember seeing. I was unable to dig up an example of what I remember...
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

  7. #7
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

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