WINdows-10 Mobile:“找不到指定的模块.(来自 HRESULT 的异常:0x8007007E)":null [英] WIndows-10 Mobile: "The specified module could not be found. (Exception from HRESULT: 0x8007007E)":null

查看:43
本文介绍了WINdows-10 Mobile:“找不到指定的模块.(来自 HRESULT 的异常:0x8007007E)":null的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个面向 UWP/Windows-10 的 C# 应用程序,适用于桌面和移动平台.C# 应用程序调用用 C++ 编写的本机组件.我的本机 C++ 代码具有 Visual C++ 组件扩展(C++/CX).然后将本机代码打包为 .dll &与应用程序捆绑在一起.

I have a C# app targeting UWP/Windows-10 for desktop & mobile platforms. The C# app calls into native component written in C++. My native C++ code has Visual C++ component extensions(C++/CX). The native code is then packaged as a .dll & bundled along with the app.


该应用程序在桌面上运行良好,即当我在 x86x64本地机器 中运行它时,但遇到在移动设备上运行时出现此错误,即在 x86 移动模拟器ARM 设备(诺基亚 950)


The app works perfectly fine on Desktop, i.e when I run it in x86 or x64, Local Machine , but encounters this error while running on Mobile, i.e. on x86 Mobile Emulator or on an ARM device(Nokia 950)

找不到指定的模块.(来自 HRESULT 的例外:0x8007007E)":null


基本上,我无法在移动模式下加载我的本机库.
我已经阅读了这个 MSDN 页面.我的原生 C++ 代码没有使用任何不受支持的 api.


Basically, I am not able to load my native libraries in Mobile mode.
I have already read this MSDN page. My native C++ code is not using any unsupported api's.


我尝试了 /"DWINAPI_FAMILY=WINAPI_FAMILY_APP"/D"WINAPI_FAMILY=WINAPI_FAMILY_PHONE_APP",但没有帮助.

在为移动设备构建本机 .dll 时,我需要使用一组不同的工具链吗?我的桌面 &移动本机 .dll 使用相同的链接器设置/标志.
任何帮助将不胜感激


I tried both /"DWINAPI_FAMILY=WINAPI_FAMILY_APP" and /D"WINAPI_FAMILY=WINAPI_FAMILY_PHONE_APP", but it didnt help.

Is there a different set of toolchain which I need to use while building native .dll for mobile? My desktop & mobile native .dll's use the same linker settings/flags.
Any help will be highly appreciated

推荐答案

这似乎是 Microsoft 的问题.我与一些 Microsoft 项目经理有联系.我为他们提供了一个展示这种行为的示例项目.
他们分析了示例项目 &说这确实是微软的问题.

This seems to be Microsoft issue. I have contacts with some Microsoft Program Manager's. I provided them a sample project which exhibits this behavior.
They analyzed the sample project & said that this indeed was an issue on Microsoft's end.


这里的问题是,当应用以桌面模式(x86 或 x64 本地计算机)部署时,ucrt 已在平台上可用"&因此该应用运行良好.


The issue here is that when the app is deployed in Desktop mode (x86 or x64 Local Machine) "ucrt is already available on the platform" & hence the app works fine.


在移动平台上 ucrt 不可用 &只有在项目中引用时才会推送.但是由于微软平台上的一些错误,这似乎并没有发生&我无法在移动设备/模拟器上运行该应用.


On Mobile platform ucrt is not available & will be pushed only when it is referenced in the project. But due some bug on Microsoft's platform this doesnt seem to happen & I was not able to run the app on Mobile device/emulator.

这篇关于WINdows-10 Mobile:“找不到指定的模块.(来自 HRESULT 的异常:0x8007007E)":null的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆