Solved

License error

Posted on 2002-07-24
4
270 Views
Last Modified: 2008-02-01
I devloped a poject using VB 5.0 (using DBGrid32.ocx) in my project. Now i have a new machine with VB 6.0 (service pack 5). In this machine i tried to open the project i developed in VB 5.0. Then i got error in loading the project DBGRID control can not be loaded. Since i do not have this DBGRID32.ocx on my machine. Then i copied DBGRID32.ocx, oca and dependency file from some other machine and i manually registered the ocx. Registration was sucessfull. Then i opened the project and added the component (DBGRID). Then when i tried to add the control to a form then i get error message 'License information fo this component not found. You do not have an appropriate license to use this functionality in the design environment'

Can any one tell me how to fix this error.
Thanks in advance
0
Comment
Question by:svenkatapuram
  • 2
4 Comments
 
LVL 20

Expert Comment

by:hes
ID: 7175388
0
 
LVL 28

Accepted Solution

by:
iboutchkine earned 75 total points
ID: 7175424
SYMPTOMS
When you try to add a control to a form, the following message may appear:

License information for this component not found. You do not have an appropriate license to use this
functionality in the design environment.

CAUSE
When a control is installed for run time use only (such as those installed by an application created
with Visual Basic), if the Visual Basic Development Environment is installed onto the same machine afterwards
and the existing control is of equal or higher version than that from the CD, the license key for that
control is not updated.

RESOLUTION
If the control in question is any of the ones listed below, then find and double-click on the file Vbctrls.reg
on the Visual Basic CD-ROM:

AniBtn32.ocx
Gauge32.ocx
Graph32.ocx
Grid32.ocx
KeySta32.ocx
MSOutl32.ocx
Spin32.ocx
Threed32.ocx
This will update the design-time licenses for these controls. For Visual Basic 5.0, Vbctrls.reg is found
in the \Tools\Controls folder. For Visual Basic 6.0, it is found on Disk 1 in the \Common\Tools\Vb\Controls
folder, and for Visual Studio 6.0, it is in the same folder of Disk 3. The Visual Basic 6.0 CD-ROM also
contains these files for the Visual Basic 5.0 Custom Controls that were discontinued in Visual Basic
6.0:
Dbgrid.reg
Mschart.reg
For more information, please refer to the Readme.txt file in the same folder.

If the control in question is not among the controls listed above, please do the following:
Locate Regsvr32.exe on your machine. Note its path.

Locate the offending OCX file(s), usually found in the Windows\System folder for Windows 95 and Windows
98, or the Windows\System32 folder for Windows NT and Windows 2000.

On the Start menu, click Run.

In the Run dialog box, type the following:

<Path to RegSvr32>\REGSVR32.EXE /u <Path to OCX>\OCXFILE.OCX

For example:

C:\Devstudio\VB\REGSVR32.EXE /u C:\Winnt\System32\COMCTL32.OCX

NOTE: If Regsvr32.exe is in the System or System32 folder, the path is optional.

Repeat steps 3 and 4 for each offending OCX.


On Control Panel, click Add\Remove Programs.


Select Visual Basic, and click Add\Remove.


Click Reinstall when the options (Add\Remove, Remove All, Reinstall) dialog box appears.


If the problem persists, click the article numbers below to view the articles in the Microsoft Knowledge
Base:
Q181854 FILE: VB5cli.exe Fixes Visual Basic 5.0 Control Installation Problem
Q194751 FILE: VB6Cli.exe Fixes License Problems with Visual Basic 6.0
Q195353 FILE: VBUSC.EXE Provides Licensing for Discontinued Controls

0
 

Author Comment

by:svenkatapuram
ID: 7175623
Thanks.
Instructions are clear. And it did work for me.
0
 
LVL 20

Expert Comment

by:hes
ID: 7175692
That answer sounds familar. Oh yes it is a printed out version of the first link I posted :)
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Macro which automatically sends attachment to Outlook 14 71
MsgBox 2 56
bit defender blocks good applications 2 94
vb6 - Transfer from MSHFlexgrid1 to xls issue 8 52
Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question