Главная страница | назад





Article #22153: Would it be difficult to create a CD Player application in C++Builder?

Question:

Would it be difficult to create a CD Player application
in C++Builder?

Answer:

No, it is actually very easy to setup a CD player in an
existing application, or even to create brand new
application that works like a CD player. The component
has already been provided and it is called MediaPlayer.

To create a *very* simple CD Player application, try the
following:

  File  |  Close All
  File  |  New Application
  Drop a MediaPlayer on the Form
  In the Object Inspector's Properties
for the MediaPlayer set the following:
    — Device Type = tAutoSelect
    — AutoEnable = true
    — FileName = Click on ... navigate to
         the CDROM and select a track
         on the CDROM.
 Build the application and run it.
 Now, clicking on the buttons in the MediaPlayer
correspond to actions relating to the media file.

Last Modified: 05-JUN-00