2
votes

Using VBA to give an example of the question:

Set obj As Object
Set obj = CreateObject("COMlib.ClassA")

How does COM find with help of the registry where COMlib.dll is located?

What keys does COM look at and in what order to be able to create ClassA?

This is related to another question

COM & Late binding in Excel/VBA: ActiveX component can't create object

1

1 Answers

2
votes

The COMlib.ClassA has an entry in HKCR.

The entries under HKCR\CLSID\guid again has informations about the DLL to load and how to load and work with it (external server etc.) incl. type lib. etc.

There may also entries under HKCR/TypeLib, when the class is implemented with a dual interface...

When you register the DLL all these entries are created.