File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

using ocx in java (JNI)

 
Isha Mackker
Greenhorn
Posts: 29
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Peter Chase
Ranch Hand
Posts: 1970
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this really a question about JNI?

Although you want to use JNI in your product, it sound to me like the problems you are having are associated with the OCX, which if I recall correctly is a Microsoft thing.

If your question is really about Microsoft programming, you probably won't get a useful answer here. You could try JavaRanch "General Computing" section of JavaRanch or, more likely, a Microsoft-specific forum.

If your problem really is to do with JNI, please explain how, in more detail. I've done a fair amount of JNI programming, but I can't begin to answer the question, as you've so far posed it.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic