Udostępnij za pośrednictwem


CCmdTarget::GetTypeLib

Gets a pointer to a type library.

virtual HRESULT GetTypeLib(
   LCID lcid,
   LPTYPELIB* ppTypeLib 
);

Parameters

  • lcid
    A locale identifier (LCID).

  • ppTypeLib
    A pointer to a pointer to the ITypeLib interface.

Return Value

An HRESULT indicating the success or failure of the call. If successful, *ppTypeLib points to the type library interface.

Remarks

Derived classes should override this member function (if not overridden, GetTypeLib returns TYPE_E_CANTLOADLIBRARY). Use the IMPLEMENT_OLETYPELIB macro, which also implements GetTypeInfoCount and GetTypeLibCache.

Requirements

Header: afxwin.h

See Also

Reference

CCmdTarget Class

Hierarchy Chart

CCmdTarget::GetTypeInfoCount

CCmdTarget::GetTypeLibCache

Other Resources

CCmdTarget Members