mannson
2007-01-20 21:48:54 UTC
Hi,
I'm using the CoCreateInstance method of the ATL smart pointer to
create COM objects in my DirectShow application. Looking at the
documentation of this method, I came across the CLSCTX_ALL flag. This
equals a collection of flags and lets COM choose the appropriate
server. Now I'm curious to know, if there is difference between this
two calls:
IGraphBuilder pGraphBuilder;
CoCreateInstance (CLSID_FilterGraph, Null, CLSCTX_INPROC_SERVER,
IID_IGraphBuilder, (void **)&pGraphBuilder);
and
CComPtr<IGraphBuilder> pGraphBuilder;
pGraphBuilder.CoCreateInstance(CLSID_FilterGraph);
How do I know, what threading model COM is actually using for the
filter graph manager, if I'm going with the second version?
Thanks in advance
Stefan
I'm using the CoCreateInstance method of the ATL smart pointer to
create COM objects in my DirectShow application. Looking at the
documentation of this method, I came across the CLSCTX_ALL flag. This
equals a collection of flags and lets COM choose the appropriate
server. Now I'm curious to know, if there is difference between this
two calls:
IGraphBuilder pGraphBuilder;
CoCreateInstance (CLSID_FilterGraph, Null, CLSCTX_INPROC_SERVER,
IID_IGraphBuilder, (void **)&pGraphBuilder);
and
CComPtr<IGraphBuilder> pGraphBuilder;
pGraphBuilder.CoCreateInstance(CLSID_FilterGraph);
How do I know, what threading model COM is actually using for the
filter graph manager, if I'm going with the second version?
Thanks in advance
Stefan