Hi,
I have a problem with DirectShow, in running through Microsoft's basic Video Control tutorials.
These are my global declerations, which I have checked, and are sure they are right:
static const UUID CLSID_MSVIDCTL = {0xB0EDF162, 0x910A, 0x11D2, {0xB6, 0x32, 0x00, 0xC0, 0x4F, 0x79, 0x49, 0x8E}};
static const UUID CLSID_SystemTuningSpaces = {0x164EDA5, 0x6A8F, 0x11D1, {0x9A, 0xA7, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96}};
This is my actual code:
HRESULT hr = S_OK;
hr = CoInitialize(NULL);
CComPtr<ITuningSpaceContainer> pTuningSpaceContainer;
hr = CoCreateInstance(CLSID_SystemTuningSpaces, NULL, CLSCTX_INPROC_SERVER, __uuidof(ITuningSpaceContainer), (void **) &pTuningSpaceContainer);
CComPtr<IMSVidCtl> pVidCtl;
hr = CoCreateInstance(CLSID_MSVIDCTL, NULL, CLSCTX_INPROC_SERVER, __uuidof(IMSVidCtl), (void **) &pVidCtl);
It fails on every CoCreateInstance to create one. I get the error message that hr = 0x80040154 Class not registered.
I'm sure I've registered everything I need, anything I might have overlooked?
Thanks,
Dan
I have a problem with DirectShow, in running through Microsoft's basic Video Control tutorials.
These are my global declerations, which I have checked, and are sure they are right:
static const UUID CLSID_MSVIDCTL = {0xB0EDF162, 0x910A, 0x11D2, {0xB6, 0x32, 0x00, 0xC0, 0x4F, 0x79, 0x49, 0x8E}};
static const UUID CLSID_SystemTuningSpaces = {0x164EDA5, 0x6A8F, 0x11D1, {0x9A, 0xA7, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96}};
This is my actual code:
HRESULT hr = S_OK;
hr = CoInitialize(NULL);
CComPtr<ITuningSpaceContainer> pTuningSpaceContainer;
hr = CoCreateInstance(CLSID_SystemTuningSpaces, NULL, CLSCTX_INPROC_SERVER, __uuidof(ITuningSpaceContainer), (void **) &pTuningSpaceContainer);
CComPtr<IMSVidCtl> pVidCtl;
hr = CoCreateInstance(CLSID_MSVIDCTL, NULL, CLSCTX_INPROC_SERVER, __uuidof(IMSVidCtl), (void **) &pVidCtl);
It fails on every CoCreateInstance to create one. I get the error message that hr = 0x80040154 Class not registered.
I'm sure I've registered everything I need, anything I might have overlooked?
Thanks,
Dan