B4J Question How to use JNA to call self-made dll?

kimstudio

Active Member
Licensed User
Longtime User
I have a self-made Windows dll B4Nat.dll with a function int FuncA(int i) exported, how to use JNA to call this function? searched the forum and found examples are more related to call functions inside Windows user32, kernel32...platform dlls. I do have source code of this dll but I think JNA will be much easier than JNI for B4J? Thanks.
 

kimstudio

Active Member
Licensed User
Longtime User
I got the answers from forum with method 1) jDotNetBridge: compile into jar library using SLC; method 2) inline java: same effect but using inline java, which is more convenient if you update functions in the dll frequently. Thanks! Now calling a c dll is so easy!
 
Upvote 0
Top