CAtlComModule::RegisterTypeLib

Call this method to register a type library.

HRESULT RegisterTypeLib( 
   LPCTSTR lpszIndex  
); 
HRESULT RegisterTypeLib( );

Parameters

  • lpszIndex
    String in the format "\\N", where N is the integer index of the TYPELIB resource.

Return Value

Returns S_OK on success, or an error HRESULT on failure.

Remarks

Adds information about a type library to the system registry. If the module instance contains multiple type libraries, use the first version of this method to specify which type library should be used.

Requirements

Header: atlbase.h

See Also

Reference

CAtlComModule Class

CAtlComModule::UnRegisterTypeLib