Typelib MyCom.tlb

 

Making it the first resource element is important, as later on we will be using the LoadTypeLib API function to extract this library, and this function expects to find the library at position 1 (unless told to do otherwise). So for simplicity, we keep it at position 1.

 

 

Registering the Component

---------------------------------------------------------------------------------------------------------------------The DllRegisterServer and DllUnregisterServer take care of registering the component for us. A dll (or ocx, which is really just a dll with a fancier extension). These registry entries are made: