Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 JIntegra java com 网桥。我有一个 Object 类型的对象,其真正的 coclass 是未知的。我需要检查该对象是否可以转换为特定的 COM 接口(它具有由 JIntegra 生成的代理类)。
调用queryInterface()代理。如果底层 COM 对象没有实现代理接口,它应该抛出异常。
queryInterface()
如果代理类实现了一个(生成的)接口,你能检查对象是否是那个的实例吗?