• Post Reply Bookmark Topic Watch Topic
  • New Topic

Replica of mciSendString  RSS feed

 
Raj Mehra
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a way in Java to do what mciSendString or mciSendCommand does in windows. The reason being I am looking for a way to handle the external device signals inside the Java application using a Java API(if possible).The device has its own set of drivers and I could do the same thing in VB using the MCI commands (winmm.dll). But the need is to do it in Java. Any suggestions or comments if it is doable in Java. Can I use any Java API which handles these functionalities provided by winmm.dll.
 
Matt Senecal
Ranch Hand
Posts: 255
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe this will help, but it may not because I'm not familiar with mciSendString:
I had a similar problem. I had a server written in VC++ that I had to interface with using Java. It was expecting serialized commands that had been created by a VC++ client, so obviously I had to mimic it. What I did was monitor the communications between the server and a demo VC++ client (that came with the server) and dumped everything out as bytes. It was easy to mimic the server command set once I knew it's byte-equivalent.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!