C++ and DirectShow
问题 I'm just getting started with DirectShow programming, and the 'C' nature of the DirectShow API is making my skin crawl. Endless return codes instead of exceptions, addref/release all over the place, functions taking pointer to pointers... Are there any 'C++ friendly' wrappers for DirectShow programming that hide all the COM ugliness underneath.? 回答1: For 98% of DirectShow code, you should never see a call to AddRef or Release. Always use CComPtr<>. There are a few minor exceptions to this