x86,具有在 x64 上编译的 COM 互操作

发布于 2024-11-27 15:02:10 字数 286 浏览 5 评论 0原文

我编写了一个小型应用程序,用于导入 iTunes 和 MediaMonkey COM 接口。该应用程序是在我的 x64 笔记本电脑上开发和构建的,但在我的 x86 媒体 PC 上运行。它在 x64 机器上运行得很好,但是当我尝试在 x86 媒体 PC 上运行它时,它无法加载。如果我禁用 MediaMonkey 部分,它可以在 iTunes 中正常工作,但我无法让它在启用 MediaMonkey COM 的情况下工作。

该应用程序专为 .NET Framework 4.0 和 x86 编译。

有什么想法我可能做错了什么吗?

I have a small application that I wrote that imports both the iTunes and MediaMonkey COM interfaces. The app is developed and built on my laptop with is x64 but run on my media PC which is x86. It runs perfectly fine on the x64 machine, but when I try to run it on the x86 media PC it fails to load. If I disable the MediaMonkey part it works fine with iTunes, but I cannot get it to work with the MediaMonkey COM enabled.

The application is compiled for .NET framework 4.0 and as x86 specifically.

Any ideas what I might be doing wrong?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

守不住的情 2024-12-04 15:02:10

经过冗长的评论对话,以下是我的建议作为真正的答案:

尝试在您的媒体 PC 上重新安装 MM,使用“以管理员身份运行”进行安装。 MM 论坛中有一个有点过时的讨论 - 安装程序不安装 COM正确地反对。如果 MM COM 服务器未正确注册,它将不可用。

另外,我不知道这是否与本例相关,但是 FWIW - 可能没有要注册的 DLL。 ActiveX EXE 可以使用默认编组器,无需代理存根,并且可以直接注册

Following the lengthy comments conversation, here's my suggestion as a real answer:

Try to reinstall MM on you media PC, using "run as administrator" for the installation. There's a somewhat dated discussion in MM forums - Installer doesn't install COM Object properly. If the MM COM server was not registered properly, it will not be available.

Also, I don't know if this is relevant for this case, but FWIW - there might not be a DLL to register. ActiveX EXEs can use the default marshaller, without a need for a proxy-stub, and can be registered directly.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文