Share via


com::ptr

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at 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