參考網上視頻示例,實體以下組件,回傳未注冊類錯誤碼?是否有大神遇到過?
// Filter的全域識別符號
static const GUID CLSID_lwVideoRenderer =
{0xf81331db, 0x2e46, 0x43e7, { 0x87, 0x9, 0xbe, 0x57, 0x20, 0x5d, 0x89, 0x14 } };
HRESULT hr;
hr = CoCreateInstance(CLSID_lwVideoRenderer, NULL, CLSCTX_INPROC_SERVER,
IID_IBaseFilter, (void **)(&m_pF));
uj5u.com熱心網友回復:
在64位Windows下:64位exe和dll在目錄c:\windows\system32目錄下;
32位exe和dll在目錄c:\windows\syswow64目錄下;
所以要注意:
在win64位系統下注冊32位ocx或dll需要將32位ocx或dll拷貝到c:\windows\syswow64\目錄下。
且注冊要用c:\windows\syswow64\regsvr32 xxxxxxx.ocx或dll
64 位 Windows 平臺注意點之檔案系統重定向 http://www.cnblogs.com/jiake/p/4981555.html
64 位 Windows 平臺注意點之注冊表重定向 http://www.cnblogs.com/jiake/p/4956218.html
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/75361.html
