从 Java 应用程序通过 RPC 与 Windows 进程通信

发布于 2024-09-16 23:31:11 字数 485 浏览 3 评论 0原文

我希望通过 RPC 与 Windows 进程进行通信。我想要与之通信的应用程序是使用 Visual Studio 2008 用 C++ 开发的。该应用程序通过 idl 文件提供其接口,然后使用 microsoft midl 工具对该文件进行编译。此应用程序已开发且无法修改。

我希望通过我用 Java 开发的第二个应用程序与此应用程序进行通信。 Windows 应用程序提供的功能是否与 RPC 的任何 Java 实现兼容?

根据我在 MSDN 上读到的内容,Window 应用程序提供的 RPC 符合 DCE 标准。除了几篇 12 年前讨论 MS jvm 的文章之外,我还没有成功地找到有关 Java 中的 DCE/RCP 的详细信息。

我也没有成功使用与jdk打包的idlj从Windows应用程序中使用idl生成java代码。 idlj 编译器给出了许多关于 idl 文件中的结构和关键字的错误。我假设是因为 MS idl 格式与 idlj 期望的格式不兼容。

有人有这种情况的经验吗?

I'm looking to communicate with a windows process via RPC. The application I want to communicate with is developed in C++ using Visual Studio 2008. The application provides its interface through an idl file which is then compiled using the microsoft midl tool. This application is already developed and cannot be modified.

I'm looking to communicate with this application from a second application that I'm developing in Java. Is the functionality provided by the windows application compatible with any Java implementation of RPC?

From what I've read on MSDN, the RPC provided by the Window application is DCE compliant. I haven't had any success finding details about DCE/RCP in Java, other than several articles that are 12+ years old and discuss the MS jvm.

I also had no success generating java code using the idl from the Windows application using idlj packaged with the jdk. The idlj compiler gives many errors about the structure and keywords in the idl file. I'm assuming because the MS idl format is incompatible with the one expected by idlj.

Does anyone have an experience with this scenario?

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

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

发布评论

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

评论(1

平安喜乐 2024-09-23 23:31:11

这看起来像一个开源 Java 实现 (Jarpac):

来自: http://blogs.cocoondev.org/michaelm/archives/002118.html

This looks like an open source java implementation (Jarpac):

From : http://blogs.cocoondev.org/michaelm/archives/002118.html

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