B4J Question How to call third-party DLL libraries?

sz_andy_china

New Member
How to call third-party DLL libraries?LIKE third-party comm lib "Pcomm.dll",third-party scanner lib "scannel.dll" .........thanks!
 

JohnJ

Member
Licensed User
Longtime User
How to call third-party DLL libraries?LIKE third-party comm lib "Pcomm.dll",third-party scanner lib "scannel.dll" .........thanks!
Java can call a Windows DLL. The pcomm.dll is an IBM terminal DLL, or it was in my world. Are you trying to access an IBM server?
 
Upvote 0

Daestrum

Expert
Licensed User
Longtime User
Long explanation short
If you are using one of the latest Java's (22+) you can use jextract on the dll, which will produce a java file for the maapping of the dll to java. You can then use the FFM (Foreign Function and Memory) api to access it. (it not too easy though, but far easier than JNA & JNI to use).
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…