开发者

Send command to device with Java

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜