I need to work with the Microsoft HTML Help API, which comes as hhctrl.ocx and can be used like a DLL.
To make this work, I had to change the NativeLibrary.java.
Please add the check for .oxc file extension to com.sun.jna.NativeLibrary.mapSharedLibraryName(String libName):
I replaced:
else if (Platform.isWindows()) {
if (libName.endsWith(".drv") || libName.endsWith(".dll") ) {
return libName;
}
}
with
else if (Platform.isWindows()) {
if (libName.endsWith(".drv") || libName.endsWith(".dll") || libName.endsWith(".ocx")) {
return libName;
}
}
and stuff works now. Please change this in your repository, many thanks.
I am using:
jna-5.2.0 on Win 10 with Oracle JDK 1.8
I need to work with the Microsoft HTML Help API, which comes as hhctrl.ocx and can be used like a DLL.
To make this work, I had to change the NativeLibrary.java.
Please add the check for .oxc file extension to com.sun.jna.NativeLibrary.mapSharedLibraryName(String libName):
I replaced:
with
and stuff works now. Please change this in your repository, many thanks.
I am using:
jna-5.2.0 on Win 10 with Oracle JDK 1.8