This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes General Computing and the fly likes calling ocx methods in C Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » General Computing
Bookmark "calling ocx methods in C" Watch "calling ocx methods in C" New topic
Author

calling ocx methods in C

Isha Mackker
Greenhorn

Joined: Oct 18, 2005
Posts: 29
Hi All,
I have a third party ocx that I'll be using in my java application. For that, I need to write a wrapper dll that I can load into my application through JNI. This dll will be interacting with the ocx and will help me call the methods in ocx and mapping the data types in Java to the ones in C.
My question is how can I generate a header file from the ocx file so that I can include that in the wrapper dll and call the methods defined in the ocx. This way I'll be implicitly loading the ocx into the wraper dll. Or is there any other way to load the ocx into my wrapper dll?
Thanks,
Isha
 
jQuery in Action, 2nd edition
 
subject: calling ocx methods in C
 
Similar Threads
Spell checker
using ocx in java (JNI)
Calling .dll files methods in Java Code
Calling ActiveX OCX from Java
java native keyword and dll usage