-
I'm using the MCI control (called mciCDControl) as a CD Player, and want to display the total length of the CD and the total length of the current track. When I use mciCDControl.Length I get a dumn looking number (like 22298089), and the same kind of thing happens when I do mciCDControl.TrackLength. I've looked into using mciCDControl.TimeFormat but it still displays the same stuff. How do I get the individual parts of the time information (e.g. Tracks/Hours/Minutes/Seconds) out of the damn thing!
Thanx in advance
Matt
-
I found the code I needed on MSDN. However I don't understand the following two lines of code:
Code:
CDSeconds = CDSeconds + (CDControl.Length And &HFF00&) / &H100
CDMinutes = CDMinutes + (CDControl.Length And &HFF)
I know what it does (extracts the relevant time section from an mci control's length property) but wht do the &***& bits mean/do?
Thanks again
Matt