Tip when using the COM object / CComPtr and STL

I am doing some COM related things with directshow, for example:

typedef CComPtr<IBaseFilter> AutoIBaseFilterPtr;
map<CString, AutoIBaseFilterPtr> _filterMap;

To save a list of com related DirectShow objects and their friendly name.

After finding this article (see: Problem 2) about how changes in the VC10 compiler can affect the previous OK code, I wonder if you no longer need to track when mixing STL and CComPtr, or maybe just mixing STL and COM as a whole.

Any advice would be greatly appreciated, thanks

+5
source share
1 answer

, , , , CAdapt CComBSTR, CComPtr, operator&.

, operator&, CAdapt , STL , X X.

+2

All Articles