Hi All, One of my friend asked this question to me: Is it required .tlb (Type Library) files to be register in windows, if it's equired, how to register? I want to share it with you all, so... Normally we will register OCX, DLL (DLLSelfREgister) ActiveX controls with regsvr32.exe Registration of the Type Library is not required. This information gets into the system as soon as you register your DLL. Please check your Registry for the registered DLL and you will find the tld related key under that. The Type Library provides information about a class in terms of its properties, methods and their argument and return types. One can find type information by loading a type library or by obtaining a reference to a COM object. Suppose we have the ADO (ActiveX Data Object) library on our system at it is located at C:/Program Files/Common Files/system/ado/msado15.dll. We load that library using LoadTypeLib lib = LoadTypeLib("C:/Program Files/Common Files/system/ado/msado15.dll"). We can use this to examine the different elements about which the library provides type information. When we are finished with it, we can release the library and free the resources it uses using UnloadTypeLib. |