How to use legacy COM component from metro app

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-01 03:33:06

问题


I'm getting hard time to use COM objects in a metro app. As stated in MSDN the rules are:

  1. Only registration free COM objects can be used
  2. The COM can use only those APIs which are allowed for metro apps.

But my CoCreateInstanceFromApp always returns REGDB_E_CLASSNOTREG. In desktop applications an error is written into the event log that SideBySide execution fails. But in metro application no such error is written into the event log.

I can use the same COM object from a desktop application as registration free over the similar manifest file.

Am I missing something? Can anyone please help me out?

Thanks

来源:https://stackoverflow.com/questions/11281246/how-to-use-legacy-com-component-from-metro-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!