Use a .OCX Control in Java

人走茶凉 提交于 2019-12-22 00:46:39

问题


IS there a way to use a ocx control ( VB6) from Java?


回答1:


Here are some links of Java/COM bridges.

http://sourceforge.net/projects/jacob-project/
http://javacombridge.com/
http://sourceforge.net/projects/j-interop/
http://java2com.com/ http://j-integra.intrinsyc.com/

The last one has a lot of samples using their bridge, you might be able to either use their product or get ideas on how to do the Java part if you are going to roll your own.

You can also wrap your own using JNI.




回答2:


The only approach I know of is through JNI, which is a bumpy road.

Commercial offerings like http://www.ezjcom.com/ provide tooling support for this, so it is easier to work with.




回答3:


Haven't done this myself, but have a look at the Java Native Interface "JNI". http://download.oracle.com/javase/6/docs/technotes/guides/jni/



来源:https://stackoverflow.com/questions/3427151/use-a-ocx-control-in-java

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!