Home > Software engineering >  DirectShow create components according to unregistered components
DirectShow create components according to unregistered components

Time:09-25

Refer to the online video example, examples of the following components, return error code unregistered class? If there is a great god met?

//Filter global identifier

The static const GUID CLSID_lwVideoRenderer=
X43e7 x2e46 xf81331db {0, 0, 0, {xbe x87 0, 0 x9, 0, 0 x57, 0 x20, 0 x5d, 0 x89, 0 x14}};

Retrieves the hr;

Hr=CoCreateInstance (CLSID_lwVideoRenderer, NULL, CLSCTX_INPROC_SERVER,
IID_IBaseFilter, (void * *) (& amp; M_pF));

CodePudding user response:

In a 64 - bit Windows:
64 exe and DLL in the directory c: \ Windows \ sys tem32 directory.
32 bit exe and DLL in the directory c: \ Windows \ sys wow64 directory.
So pay attention to:
In win64 system registered under 32-bit ocx DLL to 32 ocx or copy the DLL to the c: \ Windows \ syswow64 \ directory,
And registered to c: \ Windows \ syswow64 \ regsvr32 XXXXXXX ocx or DLL
A 64 - bit Windows platform attention point of the file system redirection http://www.cnblogs.com/jiake/p/4981555.html
64 - bit Windows platforms attention point of the registry to redirect http://www.cnblogs.com/jiake/p/4956218.html
  • Related