I want to connect magnetic card reader, send commands and get responses with Java (COM Port) in Windows XP. I have .h
file & dll
. I want use dll
functions. How can I con开发者_JAVA技巧nect or send device?
You will need to use JNI (Java Native Interface), google it for details. You probably will have to write some wrappers around the DLL in C first before JNI can use it.
As an alternative, you may be able to bind to the dll
using JNA.
精彩评论