Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Should I use ATLs smart pointers CComPtr or the native _com_ptr_ type?

atl native pointers SMART type
0
Posted

Should I use ATLs smart pointers CComPtr or the native _com_ptr_ type?

0

The primary difference is that _com_ptr_ supports exception handling and CComPtr does not. Also, the comments above mentioned, if you want to use ATL on non-Visual C++ platforms, you should stick with CComPtr because _com_ptr_ is only provided as part of Microsoft’s C++ implementation.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123