Two Laptop Bag
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
JavaRanch » Java Forums » Engineering » General Computing
Bookmark "calling ocx methods in C" Watch "calling ocx methods in C" New topic

calling ocx methods in C

Isha Mackker

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?
I agree. Here's the link:
subject: calling ocx methods in C
jQuery in Action, 3rd edition