简体   繁体   中英

Third party sdk dll works with WPF but not UWP

I have a third party sdk provided as .dll and tlb. It works fine with WPF, but when I add it to UWP project, once I reach the screen that uses the sdk it throws

instance of the COM component with CLSID {DBA84AA0-3342-4AF0-96ED-3D8D08D544F3} using CoCreateInstanceFromApp failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)). Please make sure your COM object is in the allowed list of CoCreateInstanceFromApp

Is there anyway to make the .dll or tbl, work with the UWP app I am developing. I have both x64 and x86 versions of the .dll.

It appears that the third party SDK that you're using doesn't support UWP. WPF and UWP use very different APIs.

You will have to request them to update their libraries and distribute those to you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM