difference between CComPtr <ipin> and IPin*</ipin>
-
Hi all In DirectShow sample code, have lot define like CComPtr , if I use IPin* superseded CComPtr , and then build and run is no error. So, what difference between CComPtr and IPin* ?
-
Hi all In DirectShow sample code, have lot define like CComPtr , if I use IPin* superseded CComPtr , and then build and run is no error. So, what difference between CComPtr and IPin* ?
CComPtr
is a smart pointer [^]. :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke -
CComPtr
is a smart pointer [^]. :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain ClarkeAnd IPin is an interface used by DirectShow to connect filters together..
Don't try it, just do it! ;-)
-
And IPin is an interface used by DirectShow to connect filters together..
Don't try it, just do it! ;-)
Well, the difference stands between a standard pointer and a smart one. The exact nature of the interface is irrelevant to the OP context. :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke