R
Richard B. Christ
Hi all,
We got a dll and I am trying to use it. If I got right, calling a
native method of this dll from the wrong package will throw an
UnsatisfiedLinkError error, right? The problem is that the
programmer's package structure is not the same as our. To solve this
problem I am thinking of making a wrapper to the dll native calls so
that the right methods get called. Is that a good idea to solve this
problem or did I miss something here?
For instance, if I would like to call the native method
Java_MyFullyQualifiedClass_MyMethod from the following class
package.subpackage.subsubpackage.MyClass after having successfully
loaded the corresponding library, should that work? Or do I have to
make a kind of package structure that is similar to
MyFullyQualifiedClass. Any help would be gratefully appreciated.
Regards,
richard
We got a dll and I am trying to use it. If I got right, calling a
native method of this dll from the wrong package will throw an
UnsatisfiedLinkError error, right? The problem is that the
programmer's package structure is not the same as our. To solve this
problem I am thinking of making a wrapper to the dll native calls so
that the right methods get called. Is that a good idea to solve this
problem or did I miss something here?
For instance, if I would like to call the native method
Java_MyFullyQualifiedClass_MyMethod from the following class
package.subpackage.subsubpackage.MyClass after having successfully
loaded the corresponding library, should that work? Or do I have to
make a kind of package structure that is similar to
MyFullyQualifiedClass. Any help would be gratefully appreciated.
Regards,
richard