Results 1 to 2 of 2

Thread: MCI TimeFormat Problems!

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2000
    Posts
    44
    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
    VB5 Enterprise, C++Builder 5, JBuilder 3.5 (so far unused )

  2. #2

    Thread Starter
    Member
    Join Date
    Feb 2000
    Posts
    44
    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
    VB5 Enterprise, C++Builder 5, JBuilder 3.5 (so far unused )

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width