Sponsored Link •
|
Advertisement
|
Advertisement
|
This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
First, if you absolutely don't want to touch your existing DLL, you can write a JNI-access module. Then you will have two DLLs, the one that implements the native side of the JNI stuff and simply interfaces to the original DLL and the original DLL itself. The other option, if you don't mind updating the existing DLL to include the JNI stuff, is to do just that. Probably what you will do in this case, is create a new module with the JNI tools that matches the name of your existing DLL and add a method or two. Then, take all your old C++ code that was in the original DLL and add that to the new JNI DLL and you have both living together, with the new JNI methods simply calling appropriate existing functions and doing any necessary parameter transformations. Neither of the options changes your existing C++ code. Replies: |
Sponsored Links
|