PRJ4: Could Not Initialize Visual Basic, Timer Driver Error

Q178375


The information in this article applies to:


SYMPTOMS

When you start Microsoft Project, you may receive the following error message:

Could not initialize Visual Basic For Applications because the Timer driver is not installed properly.


CAUSE

In order to run Microsoft Project version 4.0, the Timer.drv, Mmsystem.dll, and Vtdapi.386 files must be available on your computer.

NOTE: When the Vtdapi.386 file is missing or damaged, or the System.ini file does not contain the correct entry for this file, you receive a Timer.drv error message when you start Windows.

This error message occurs when any of the following conditions is true:


WORKAROUND

To work around this problem, try each of the following methods.

Method 1

To verify that the files are correctly installed and that the System.ini file contains the appropriate entries, follow these steps:

  1. Make sure the System.ini file contains the following lines for Mmsystem.dll, Vtdapi.386, and Timer.drv.

    NOTE: Make sure that you do not have trailing spaces following any of these lines.


    1. The [BOOT] section of the System.ini file requires the following line :
      
               drivers=mmsystem.dll 
      This line specifies which drivers to load when you start Microsoft Windows, and so additional drivers may be listed on this line. For example, the line may read:
      
               drivers=mmsystem.dll pen penwindows 
      For additional information about this line, see the Pjreadme.hlp file that is installed with Microsoft Project.


    2. The [386Enh] section of the System.ini file requires the following line:


    3. 
                device=vtdapi.386 
    4. The [drivers] section of the System.ini file, requires the following line:


    5. 
                timer=timer.drv 
  2. Use the method appropriate for your operating system.

    Windows 95

    Make sure the Mmsystem.dll file is loaded on your computer. This file should be located in your \Windows\System folder. If the file does not exist on your computer, follow these steps to extract it from your Windows disks:

    1. Copy Extract.exe from the "Disk 1 -Setup" disk to the root directory of your hard disk drive.


    2. On the Start menu, point to Programs and then click MS-DOS Prompt.


    3. In the MS-DOS Prompt window, change to your root directory; for example, type the following at the command prompt:


    4. cd C:\
    5. Insert Disk 8 of your Windows 95 disks and type the following at the command prompt:


    6. extract a:\Win95_08.cab /L c:\Windows\System Mmsystem.dll
    7. After the Extract program finishes extracting the file to your computer, type the following at the command prompt:


    8. exit
    9. Eject Disk 8 from your floppy drive and restart your computer.


    Windows Version 3.1, and Windows for Workgroups Version 3.11

    Make sure the files Timer.drv, Mmsystem.dll, and Vtdapi.386 are loaded on your computer. All three files should be located in your \Windows\System directory. If the files do not exist on your computer, expand them from your Windows disks. Check your computer for duplicate file names, and rename as needed.

    To expand the files, follow these steps:

    1. Exit windows to the MS-DOS prompt.


    2. Change to the Windows directory.


    3. In drive A, insert the disk that contains the file that you want to expand. This depends on your version of Microsoft Windows.

      Microsoft Windows version 3.1

      • Timer.drv is located on Disk 3 (Windows 3.1), Disk 5 (Windows 3.11)
      • Mmsystem.dll is located on Disk 4 (Windows 3.1 and 3.11)
      • Vtdapi.386 is located on Disk 3 (Windows 3.1), Disk 5 (Windows 3.11)

      Microsoft Windows for Workgroups, version 3.11

      • Timer.drv is located on Disk 5 (Disk 7 if 5.25-inch disks)
      • Mmsystem.dll is located on Disk 4
      • Vtdapi.386 is located on Disk 5 (Disk 7 if 5.25-inch disks)


    4. At the MS-DOS command prompt, follow these steps to expand the files (assuming your Windows disk is in drive A):


      • To Expand Timer.drv, type the following:
      • Expand a:\timer.dr_ c:\windows\system\timer.drv
      • To Expand Mmsystem.dll, type the following:
      • Expand a:\mmsystem.dl_ c:\windows\system\mmsystem.dll
      • To Expand Vtdapi.386, type the following:
      • Expand a:\vtdapi.38_ c:\windows\system\vtdapi.386


Other Things to Look For:

Method 2

Determine if a driver has created or modified entries in the [386Enh], [Boot], or [Drivers] sections of the System.ini file (and whether this modification is causing the problem).

To do this, remark these entries out (type a semicolon at the beginning of each driver entry), and make sure that the appropriate entries are included in each section of the System.ini file. For more information about these entries, see step 1 in the "Method 1" section of this article.

NOTE: Commenting these lines out may prevent you from running certain programs or utilities.

The following table includes specific examples of drivers that may create entries in the [386Enh], [Boot], or [Drivers] sections of the System.ini file and which may cause these error messages. The table also contains suggestions about how you may be able to avoid the error messages.

   For this       Using this
   product        driver        Make this modification
   ----------------------------------------------------------------------
   AceCad           AceCat 2    Check for multiple [Boot] sections.
   Enterprises                  Remark out all but one of these
   program                      sections and ensure that it
                                contains the appropriate drivers=
                                entry.
   ----------------------------------------------------------------------
   Adobe Type       Atmsys.drv  Change the following lines in the
   Manager (ATM)                [Boot] section from
                                   system.drv=atmsys.drv
                                   atm.system.drv=system.drv
                                to:
                                   system.drv=system.drv
   ----------------------------------------------------------------------
   After Dark       Adwrap.drv  Remark out
   3.0
                                   drivers=d:\afterdark\arwrap.drv
                                and add:
                                   drivers=mmsystem.dll
   ----------------------------------------------------------------------
   Drawing                      Change
   tablet
                                   drivers=pen penwindows
                                to:
                                   drivers=mmsystem.dll pen penwindows
   ----------------------------------------------------------------------
   Explorer on Net              In the [BOOT] section, remark out:
   by FTP, Inc.
                                  drivers=c:\explorer\wcomapi.dll
   ----------------------------------------------------------------------
   Kurta's Tablet  Wtkurta      Change
   Tablet Driver
   version 8.01                    drivers=wtkurta
   or 8.0i
                                to:
                                   drivers=mmsystem.dll
   ----------------------------------------------------------------------
   LapLink                      In the [386enh] section, remark out
                                the lines that contain the
                                following:
                                   vpd.386 (virtual parallel port)
                                   vcd.386 (virtual serial port)
                                   tsivid.386 (virtual used by TSI
                                               Products)
   ----------------------------------------------------------------------
   Quarterdeck QEMM 8.0         Change
                                   drivers=C:\QEMM\mmsystem.dll
                                to:
                                   drivers=mmsystem.dll
   ----------------------------------------------------------------------
   Safari 3180     sswincs.dll  Change
   Notebook with
   a PCMCIA card                   drivers=c:\pcmia2\cardview\sswincs.dll
   slot
                                to:
                                   drivers=mmsystem.dll
   ----------------------------------------------------------------------
   Windows Sound                Check to see if the following line
   System                       has been remarked out:
                                   drivers=mmsystem.dll

                                If it has been remarked out,
                                remove the semicolon from the
                                line. You may still receive the
                                error message, but you will be
                                able to run Microsoft Excel. 

Method 3: If Windows Is Not Installed Correctly

If you attempted to install Windows version 3.1 over Windows version 3.0, and the installation failed, the following line will appear in the [Boot] section of the System.ini file:

   oldshell=progman.exe 
Also, the following line will appear in the [Drivers] section of the System.ini file:

   olddrivers=mmsystem.dll 
To correct this problem, edit the System.ini file and remove the "old" prefix from both of these lines so that they appear as follows

   shell=progman.exe 
and:

   drivers=mmsystem.dll 
Also, make sure that there are no lines in the System.ini file that look like this:

   ;drivers=mmsystem.dll 


MORE INFORMATION

The third-party products discussed in this article are manufactured by vendors independent of Microsoft; we make no warranty, implied or otherwise, regarding these products' performance or reliability.

Additional query words: timer driver vba proj

Keywords : kbenv kberrmsg
Issue type : kbprb
Technology :


Last Reviewed: November 3, 2000
© 2001 Microsoft Corporation. All rights reserved. Terms of Use.