PRB: Error Message When You Start eVB Project: Object Library Not Registered (315576)



The information in this article applies to:

  • Microsoft eMbedded Visual Basic 3.0, when used with:
    • Microsoft Windows CE for the Pocket PC
    • Microsoft Windows CE for Pocket PC 2002

This article was previously published under Q315576

SYMPTOMS

When you start a new Pocket PC or Pocket PC 2002 project in eMbedded Visual Basic (eVB), you may receive the following error message:
Object Library Not Registered

CAUSE

If you are using Pocket PC, this behavior occurs because the following file was not registered during the installation of the Pocket PC Platform Software Development Kit (SDK):

C:\Program Files\Microsoft eMbedded Tools\EVB\VB6PPC.OLB

If you are using Pocket PC 2002, this behavior occurs because the following file was not registered during the installation of the Pocket PC 2002 Platform SDK:

C:\Program Files\Microsoft eMbedded Tools\EVB\VB6PPC2.OLB

RESOLUTION

To resolve this issue, register the Vb6ppc.olb file by using Regtlib.exe (installed with Visual Studio 6.0 Service Pack 3 and later), as follows:
  1. Click Start, and then click Run.
  2. If you are using Pocket PC, type the following text in the Open box:

    regtlib.exe "C:\Program Files\Microsoft eMbedded Tools\EVB\VB6PPC.OLB"

    If you are using Pocket PC 2002, type the following text in the Open box:

    regtlib.exe "C:\Program Files\Microsoft eMbedded Tools\EVB\VB6PPC2.OLB"

  3. Click OK.

MORE INFORMATION

The following is a sample .reg file that contains the required registry settings for the Pocket PC SDK:
Windows Registry Editor Version 5.00


[HKEY_CLASSES_ROOT\TypeLib\{6D5C6210-E14B-11D2-B72A-0000F8026CEE}]


[HKEY_CLASSES_ROOT\TypeLib\{6D5C6210-E14B-11D2-B72A-0000F8026CEE}\6.0]

@="Visual Basic objects and procedures"


[HKEY_CLASSES_ROOT\TypeLib\{6D5C6210-E14B-11D2-B72A-0000F8026CEE}\6.0\9]


[HKEY_CLASSES_ROOT\TypeLib\{6D5C6210-E14B-11D2-B72A-0000F8026CEE}\6.0\9\win32]

@="C:\\Program Files\\Microsoft eMbedded Tools\\EVB\\VB6PPC.OLB"


[HKEY_CLASSES_ROOT\TypeLib\{6D5C6210-E14B-11D2-B72A-0000F8026CEE}\6.0\Flags]

@="4"


[HKEY_CLASSES_ROOT\TypeLib\{6D5C6210-E14B-11D2-B72A-0000F8026CEE}\6.0\HELPDIR]

@="C:\\Program Files\\Microsoft eMbedded Tools\\EVB"
				
The Regtlib.exe file is used as follows
   regtlib [-q][-h] -o (odl file) | <typelib, olb, exe or dll filename(s)>
				
where:
  • -q indicates to produce no messages.
  • -o indicates to read an ODL file and use importlib() statements for TypeLibs to register.
  • -h (path) directory for Help file of TypeLib.

Modification Type:MinorLast Reviewed:7/27/2004
Keywords:kberrmsg kbprb KB315576 kbAudDeveloper