Re: Need to call dll without any source code on the dll
Wednesday, April 4, 2001 07:38 AM
There is no way to do it without the header file -- the OS can't perform the dynamic link step between the C code and the JVM unless the interfaces are in synch.
You'll need to create a wrapper .DLL, creating pass-through function calls for each of the native API calls that you are interested in. This works well, but can be tedious if the interface is complex.
We created a FAX server in Java for a client by wrapping an existing FAX server (with an exposed API) in JNI.