CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2001
    Location
    Austria
    Posts
    17

    Problem with CoCreateInstance

    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

  2. #2
    Join Date
    Oct 2002
    Location
    Singapore
    Posts
    3,128
    You can try to use regsvr32.exe to register the dll again.

  3. #3
    Join Date
    Jul 2001
    Location
    Austria
    Posts
    17
    all directX-dlls or only the one for directShow??

  4. #4
    Join Date
    Oct 2002
    Location
    Singapore
    Posts
    3,128
    It should be the dll that contains IAMMultiMediaStream. Only in worst case, you may want to re-install DirectX.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured