Calling a dll changed in 3.0 final [message #259545] |
Thu, 08 July 2004 09:56 |
Eclipse User |
|
|
|
Originally posted by: cenedese.nospam.indel.ch
Hi
I try to load a dll and call a function with JNI. I managed to get it to
work
with eclipse 3.0M9. As the final release came out I couldn't just work with
the already made plugins so I created a new workspace and new plugins. Then
I added my old code parts to call the dll. But this doesn't work anymore.
The code goes like:
try {
System.loadLibrary("inco_32");
dll.IncoInitialize();
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. " + e);
System.exit(1);
}
This worked in M9 but fails now with the unsatisfied link exception.
How can I make this work again? The JVM is the same (1.4.2) as is the
dll (built with MSVC6).
in the C-file is:
Java_Indel_Inco32_inco32JNI_IncoInitialize(JNIEnv *jenv, jclass jcls)
in the lib file are (don't know which one is used):
_Java_Indel_Inco32_inco32JNI_IncoInitialize@8
__imp__Java_Indel_Inco32_inco32JNI_IncoInitialize@8
But I don't know which name the JVM wants to call.
Thanks
bye Fabi
|
|
|
Powered by
FUDForum. Page generated in 0.03223 seconds