Solved

Problem with MS Grid control

Posted on 1998-05-26
5
852 Views
Last Modified: 2008-02-01
I got the following error when I loaded my VB 5.0 project, which uses the Microsoft Grid Control, which lives at:

C:\WINNT\System32\grid32.ocx

Cannot load control grd; license not found.

How can I get this control to load?
0
Comment
Question by:edpoor
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 

Expert Comment

by:gavriep
ID: 1461631
This means that the license for the control, which is a certain key with a certain value nit the Registry, is not present.
The most *practical* solution is re-installing VB5, which is not such a big deal. Of course, you can copy the registry key from another PC with VB installed (I cannot post the key as this is specifically forbidden by the MS license agreement).

*I* would re-install VB5.
0
 

Author Comment

by:edpoor
ID: 1461632
I have un-installed and re-installed VB5, but that didn't work.

A coworker has managed to use grid.ocx successfully. Please explain the process of copying a registry key.

Ed Poor
0
 

Expert Comment

by:gavriep
ID: 1461633
Well, this won't help you if you un- and re-installed...
What is you OS? Win95 or NT?
0
 
LVL 1

Accepted Solution

by:
JayMerritt earned 20 total points
ID: 1461634
You will need to refer to:

http://support.microsoft.com/support/kb/articles/q177/7/99.asp

This is in Microsoft's Knowledge Base.

The GRID32.OCX was not distributed with VB5.  They have provided backward compatibility directions as well as the valid license info for the Registry.

I have also run into the problem with valid VB5 OCX's after moving from onde development machine to another and found the answer to that problem in KB Article #Q181854 and VBC.EXE.

The following is a snippit from the KB Article #Q177799:

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 the file Vbctrls.reg in the VB5.0\Tools\Controls folder on the Visual Basic CD- ROM and double-click the file:


   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 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 or Windows\System32 folder for Windows NT.

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, please see the following article in the Microsoft Knowledge Base:



      ARTICLE-ID: Q181854
      TITLE     : FILE: Vbc.exe Fixes VB 5.0 Control Installation Problem

STATUS
Microsoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.



MORE INFORMATION


Steps to Reproduce Behavior

Set up a Windows 95 or Windows NT machine, Machine A, without Visual Basic 5.0 installed. Then set up a development machine, Machine B, with Visual Basic 5.0 and Service Pack 3 installed.

On Machine B, create a Standard EXE project. Form1 is created by default.

Add the following component (OCX) to the Toolbox:


      Comctl32.ocx

Add at least one control from this OCX to Form1.

Compile and save the project.

Create a setup application using the Visual Basic Application Setup Wizard, selecting all default options.

Install the application onto Machine A.

Install Visual Basic 5.0 on Machine A.
A
Start a Standard EXE project and add Comctl32.ocx to the Toolbox.
Try to add any of the controls from this OCX, and this error message appears:



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

REFERENCES
For additional information, please see the following articles in the Microsoft Knowledge Base:


   ARTICLE-ID: Q172193
   TITLE     : INFO: List of VB 4.0 Custom Controls Discontinued in VB 5.0

   ARTICLE-ID: Q181854
   TITLE     : FILE: Vbc.exe Fixes VB 5.0 Control Installation Problem

0
 

Author Comment

by:edpoor
ID: 1461635
Thanks, Jay. I followed your instructions, and the problem immediately disappeared forever, like a bad dream.

I rate your answer A+.

Ed
0

Featured Post

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…
Suggested Courses
Course of the Month6 days, 23 hours left to enroll

623 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