• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Replica of mciSendString

 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 255
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic