Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All


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.

#include <msclr\com\ptr.h>

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

Community Additions

© 2015 Microsoft