Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Basic COM on CE type computers

Status
Not open for further replies.

phobia1

IS-IT--Management
Jul 2, 2001
6
GB
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
 
Try to put something else instead of CLSCTX_ALL. For a exe is CLSCTX_LOCAL_SERVER but for dll CLSCTX_INPROC_SERVER. Also there could be some other parameters for remote servers. John Fill
1c.bmp


ivfmd@mail.md
 
Have found the answer to be unregistration of CLSID
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top