Click to See Complete Forum and Search --> : Problem with CoCreateInstance


TheSyndrome
April 2nd, 2003, 02:32 AM
I have a Problem with CoCreateInstance -> the following code is out of the msdn-example.


IAMMultiMediaStream *pAMStream;
result = CoCreateInstance(CLSID_AMMultiMediaStream, NULL, CLSCTX_INPROC_SERVER,IID_IAMMultiMediaStream, (void **)&pAMStream);

my "result"-value is REGDB_E_CLASSNOTREG

I don't know whats wrong, because i think all dll's are registered
Maybe I forgot somelthing to register ore something else...)

Can somebody help?

thx
Daniel

Kheun
April 2nd, 2003, 02:39 AM
You can try to use regsvr32.exe to register the dll again.

TheSyndrome
April 2nd, 2003, 02:45 AM
all directX-dlls or only the one for directShow??

Kheun
April 2nd, 2003, 02:55 AM
It should be the dll that contains IAMMultiMediaStream. Only in worst case, you may want to re-install DirectX.