BOOL AfxOleRegisterTypeLib( HINSTANCE hInstance, REFGUID tlid, LPCTSTR pszFileName = NULL, LPCTSTR pszHelpDir = NULL );
Return Value
Nonzero if the type library was registered; otherwise 0.
Parameters
hInstance
The instance handle of the application associated with the type library.
tlid
The unique ID of the type library.
pszFileName
Points to the optional filename of a localized type library (.TLB) file for the control.
pszHelpDir
The name of the directory where the help file for the type library can be found. If NULL, the help file is assumed to be in the same directory as the type library itself.
Remarks
Registers the type library with the Windows registration database and allows the type library to be used by other containers that are OLE-control aware. This function updates the registry with the type library name and its location on the system.
See Also AfxOleUnregisterTypeLib, AfxOleRegisterControlClass, AfxOleUnregisterClass