H
hswerdfe
I have an old Fortran exe that runs a tank model.
I am having good success converting this Model to a dll and then loading
the dll in Java using "System.loadLibrary".
and then accessing the Fortran with a c wrapper generated with javah.exe
The Problem is that the original exe only ever had 1 instance of the
model it was running.
but I want to have 2 copies of the model it is running and be able to
pass simple information between them using Java.
But if I call System.LoadLibrary 2 or more times it just ignores the
second call and all Native calls are performed on the first and only dll
loaded.
In My Mind I see something that loads a library into memory many times.
Allows me to keep the 2 memory locations separate, And allows me to call
functions on both instances of the libraries.
I have no idea where I should start.
I am currently using Visual Studio 6.0 to create the DLL's and the 1.5 JDK
Thanks How.
I am having good success converting this Model to a dll and then loading
the dll in Java using "System.loadLibrary".
and then accessing the Fortran with a c wrapper generated with javah.exe
The Problem is that the original exe only ever had 1 instance of the
model it was running.
but I want to have 2 copies of the model it is running and be able to
pass simple information between them using Java.
But if I call System.LoadLibrary 2 or more times it just ignores the
second call and all Native calls are performed on the first and only dll
loaded.
In My Mind I see something that loads a library into memory many times.
Allows me to keep the 2 memory locations separate, And allows me to call
functions on both instances of the libraries.
I have no idea where I should start.
I am currently using Visual Studio 6.0 to create the DLL's and the 1.5 JDK
Thanks How.