Vote count: 0
I am trying to access the methods of a DLL file in Java.
I wanted to use ComfyJ to create a wrapper for the DLL file. ComfyJ has a wizard for this, however when I select the DLL file, it says that it cannot use this kind of DLL file.
So, next I tried to use the JNIWrapper wizard, but it requires a .h file. The problem is, that I don't have a .h file for this DLL.
(I have a commercial license for both these tools).
I am a bit surprised that there is no way to export or create a .h file for any given DLL file. I searched the internet but couldn't find any tool capable of doing this. Which gives me the feeling that I'm still missing some piece of information, which is not in the DLL file, but will be necessary to create this .h file.
Secondly, I do actually know all method names, parameters and return types. That is because the WinApiOverride tool can list them for me. I can even see which parameters are passed to the functions/methods of this DLL file, while applications are running.
So, I have the impression that I have all required information. My question: do you think it's possible that I create this .h file manually using Notepad ?
Legal Note: this DLL file is not a pre-installed DLL. It's part of a commercial application for which I own a valid commercial license. The company says that I am free to use their DLL file for whatever I want, as long as I use it for personal use only.
creating a .h file for a DLL file, if you do know the method signatures
Aucun commentaire:
Enregistrer un commentaire