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.
Re: Using unregistered COM DLL
CreateObject() might be able to do it.
Re: Using unregistered COM DLL
I don't think so - it needs progid so it must be registered.
Re: Using unregistered COM DLL
I really thought I saw this done once.
Re: Using unregistered COM DLL
Could this be what you saw Dave?
From MSDN:
Quote:
...
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.
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...
Re: Using unregistered COM DLL