摘要
与其他编程语言相比,Java有很多优点,尽管如此,你常常希望在你的代码中访问其他语言写的应用或者程序库,尤其是COM组件。标准Java没有对COM提供支持,但是,你可以对自动化COM组件主要是COM组件的Idispatch接口进行封装,然后通过使用Java本地接口(JNI)来访问COM组件。
Java programming language has more advntanges than other programming languages,nevertheless you want your java code to operate with application and libraryies written in other languages,especially COM components.Standard Java has no support for COM, but you can encapsulate automation GOM components,and then access automation COM components through using the JNI.The detail is narrated in the paper.
出处
《电脑知识与技术》
2006年第4期111-112,144,共3页
Computer Knowledge and Technology