I am trying to write some code to play a CD from a drive and the user can indicate what track to play.
I should be using this format, as far as I know:
mciSendString("open cdaudio", null, 0, IntPtr.Zero);
mciSendString("play cdaudio from 3:00:00:00 to 4:00:00:00", null, 0, IntPtr.Zero);
So this would play from the 3rd track to the 4th.
This does not work, it seems to start in the middle of the first track or the track that I want to paly (3). Any advice
Thanks

Playing cd's with mci question
Biju S Melayil
:-)
see if the documentation helps...
http://msdn2.microsoft.com/en-us/library/ms709492.aspx
http://msdn2.microsoft.com/en-us/library/ms707322.aspx
http://msdn2.microsoft.com/en-us/library/ms712842.aspx
Uncle Ted
laboremus
you should really stay away from using mciSendString and move on to newer better methods. Why don't you embed WMP into your application and use that to play your CD
http://msdn.microsoft.com/windowsmedia/downloads/default.aspx
To do this, right click your toolbox > Choose Items > COM Component, Windows Media Player
then drag and drop the component onto your form
to play a file use the url to specify the path of the file
you can also control the CD drive and play files via the ctlcontrols property and the next() method (previous to go back of course, stop() to stop and pause() to pause)