Поделиться через


CCmdTarget::GetTypeLib

Gets a pointer to a type library.

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

Параметры

  • lcid
    A locale identifier (LCID).

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

Возвращаемое значение

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

Заметки

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.

Требования

Header: afxwin.h

См. также

Основные понятия

CCmdTarget Class

CCmdTarget Members

Hierarchy Chart

CCmdTarget::GetTypeInfoCount

CCmdTarget::GetTypeLibCache