cpp-docs/docs/dotnet/com-ptr.md at master · ZeroInfinite/cpp-docs · GitHub
Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 832 Bytes

File metadata and controls

31 lines (24 loc) · 832 Bytes
title com::ptr | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.technology
cpp-cli
ms.topic reference
f1_keywords
ptr
dev_langs
C++
helpviewer_keywords
com::ptr
ms.assetid ee302e3c-8fed-4875-a372-2e55003718d3
author mikeblome
ms.author mblome
ms.workload
cplusplus
dotnet

com::ptr

A wrapper for a COM object that can be used as a member of a CLR class. The wrapper also automates lifetime management of the COM object, releasing owned references on the object when its destructor is called. Analogous to CComPtr Class.

Syntax

#include <msclr\com\ptr.h>

Remarks

com::ptr Class is defined in the <msclr\com\ptr.h> file.

See Also

C++ Support Library