Microsoft KB Archive/315576

= PRB: Error Message When You Start eVB Project: Object Library Not Registered =

Article ID: 315576

Article Last Modified on 7/27/2004

-

APPLIES TO

 Microsoft eMbedded Visual Basic 3.0, when used with:  Microsoft Windows CE Palm-size PC 2.01 software

 Microsoft Pocket PC 2002 Software Standard Edition 

-



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: <ol> Click Start, and then click Run.</li> If you are using Pocket PC, type the following text in the Open box:

regtlib.exe &quot;C:\Program Files\Microsoft eMbedded Tools\EVB\VB6PPC.OLB&quot;

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

regtlib.exe &quot;C:\Program Files\Microsoft eMbedded Tools\EVB\VB6PPC2.OLB&quot;

</li> Click OK.</li></ol>

<div class="moreinformation_section">

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]

@=&quot;Visual Basic objects and procedures&quot;

[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]

@=&quot;C:\\Program Files\\Microsoft eMbedded Tools\\EVB\\VB6PPC.OLB&quot;

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

@=&quot;4&quot;

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

@=&quot;C:\\Program Files\\Microsoft eMbedded Tools\\EVB&quot; The Regtlib.exe file is used as follows <pre class="fixed_text">  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.

Additional query words: evb wince tlb olb

Keywords: kberrmsg kbprb KB315576

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.