次の方法で共有


ITypeInfo::ReleaseVarDesc (Compact 2013)

3/26/2014

This method releases a VARDESC previously returned by ITypeInfo::GetVarDesc.

Syntax

HRESULT ReleaseVarDesc(
  VARDESC FAR* pVarDesc 
);

Parameters

  • pVarDesc
    [in] Pointer to the VARDESC to be freed.

Remarks

ReleaseVarDesc releases a VARDESC that was returned through GetVarDesc.

Example

VARDESCFAR *pVarDesc;
CHECKRESULT(ptypeinfo->GetVarDesc(i, &pvardesc));
idMember = pvardesc->memid;
CHECKRESULT(ptypeinfo->GetDocumentation(idMember, &bstrName, NULL, NULL, NULL));
ptypeinfo->ReleaseVarDesc(pvardesc);

Requirements

Header

oaidl.h,
oaidl.idl

Library

oleaut32.lib,
uuid.lib

See Also

Reference

ITypeInfo
ITypeInfo::GetVarDesc
VARDESC