Hi
Could anyone tell me where I'm going wrong with my link to COM interfaces
HRESULT CoInitializeEX(NULL, COINIT_MULTITHREADED); //0
IClassFactory* pFactory = NULL;
CoGetClassObject(CLSID_FilterGraph,CLSCTX_ALL,NULL,IID_IClassFactory,(void **)&pFactory);
//clsid filtergarph is ok as is the IID_Classfactory but //cannot get pFactory to be valid pointer
pFactory->QueryInterface(IID_IMediaControl, (void **)&pMC);
Any ideas please
Best
Fred
Could anyone tell me where I'm going wrong with my link to COM interfaces
HRESULT CoInitializeEX(NULL, COINIT_MULTITHREADED); //0
IClassFactory* pFactory = NULL;
CoGetClassObject(CLSID_FilterGraph,CLSCTX_ALL,NULL,IID_IClassFactory,(void **)&pFactory);
//clsid filtergarph is ok as is the IID_Classfactory but //cannot get pFactory to be valid pointer
pFactory->QueryInterface(IID_IMediaControl, (void **)&pMC);
Any ideas please
Best
Fred