KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q94185: FIX: VB MCITEST CD Player Sample Displays Incorrect Track

Article: Q94185
Product(s): Microsoft Visual Basic for Windows
Version(s): 2.0
Operating System(s): 
Keyword(s): 
Last Modified: 23-DEC-2000

-------------------------------------------------------------------------------
The information in this article applies to:

- Microsoft Visual Basic Professional Edition for Windows, version 2.0 
-------------------------------------------------------------------------------

SYMPTOMS
========

The CD Player component of the MCITEST.MAK sample program incorrectly displays
random numbers in the field labeled "Track."

STATUS
======

Microsoft has confirmed this to be a bug in the MCITEST sample application
supplied with the Professional Edition of Microsoft Visual Basic for Windows,
version 2.0. This problem was corrected in Microsoft Visual Basic version 3.0
for Windows.

MORE INFORMATION
================

To correct the above problem, add the following code to module GLOBAL.BAS:

      Global Const MCI_FORMAT_TMSF = 10

Steps to Reproduce Problem
--------------------------

1. Run Visual Basic.

2. From the File menu, select Open Project (press ALT, F, O). Select MCITEST.MAK
  from the directory VB\SAMPLES\MCI, where "VB" is subdirectory where Visual
  Basic is located.

3. From the Run menu, select Start.

4. From the Devices menu, select CDAudio, click the Load button, and click the
  Play button. The track number starts at 1, then incorrectly displays random
  numbers.

Additional query words: buglist2.00 fixlist3.00 2.00 3.00 multimedia

======================================================================
Keywords          :  
Technology        : kbVBSearch kbAudDeveloper kbZNotKeyword6 kbZNotKeyword2 kbVB200
Version           : :2.0
Issue type        : kbbug
Solution Type     : kbfix

=============================================================================

THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Copyright Microsoft Corporation 1986-2002.