This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to detect a CD inserted into a drive  RSS feed

Otak Arr
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey people,
Does anyone know, how to detect an event,
when user inserts CD into CD drive?
Loox like there`s gonna be a different solution for each OS plattform.
I tried to ask already a couple of people, but they only said I need to go thru NATIVE methods and call either C++ or Delphi functions which deal with WM_CHANGEDEVICE (in case of Windows OS) to handle this issue.

Since I got minimal experience with C++ and no experience at all with Delphi, I was wondering if there is a "Pure Java" solution to this...
Did anyone encounter a similar problem before?
I would appreciate some code samples or pseudocode, if possible..
thanx for your help
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!