WIN7 C# System.Runtime.InteropServices.COMException VLC HRESULT:0x80040154 (REGDB_E_CLASSNOTREG)

时间:2022-06-07 04:33:47

Win7 + VS2005

 

WIN7 C# System.Runtime.InteropServices.COMException VLC HRESULT:0x80040154 (REGDB_E_CLASSNOTREG)

C#引用 VLC,运行错误:System.Runtime.InteropServices.COMException VLC HRESULT:0x80040154 (REGDB_E_CLASSNOTREG)

 

解决办法:在项目属性里设置“生成”=>“目标平台”为x86而不是默认的ANY CPU.