COM 接口 iStream 在哪个 DLL 中定义?

发布于 2024-08-30 23:53:38 字数 555 浏览 5 评论 0原文

我是 Windows 和 COM 编程的新手,尝试使用 com4j 从 Java 调用 COM 对象。

Com4j 从“通常在 .ocx、.dll、.exe 和/或 .tlb 文件中找到”的 COM 定义生成 Java 接口。我很容易找到目标 COM 对象的 .ocx 文件,但我对标准接口 iStream 没有任何线索。

Microsoft 文档 提到 OLE32.DLL ( c :\Windows\Windows32\Ole32.dll ?) ,但 com4j 生成器和 oleviewer 成功打开此文件。

有什么提示吗?

I'm a complete newbie to Windows and COM programming, trying to use com4j in order to call a COM object from Java.

Com4j generates Java interfaces from COM definitions "often found in .ocx, .dll, .exe, and/or .tlb files" . It was easy for me to locate the .ocx file of my target COM object, but I have no clue regarding the standard interface iStream.

Microsoft's documentation mentions OLE32.DLL ( c:\Windows\Windows32\Ole32.dll ?) , but neither the com4j generator nor oleviewer succeed in opening this file.

Any hints?

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

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

发布评论

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

评论(2

暮凉 2024-09-06 23:53:38

看起来它是在 comsvc​​s.dll 中定义的。

It looks like it is defined in comsvcs.dll .

清风不识月 2024-09-06 23:53:38

您链接到的文档引用了 Objidl.idl。 com4j 或许能够处理 IDL 文件。

或者,您可以尝试使用 MIDL 将 IDL 编译为 TLB: http://msdn.microsoft.com/en-us/library/aa367372(VS.85).aspx

The documentation you linked to references Objidl.idl. com4j might be able to process IDL files.

Alternatively you could try compiling the IDL into a TLB using MIDL: http://msdn.microsoft.com/en-us/library/aa367372(VS.85).aspx

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