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
Solved

Help a novice programmer....

Posted on 2004-09-28
4
168 Views
Last Modified: 2010-05-02
I am having a form load problem in a VB6 project.  THe form in question has a grid on it which allows the user to scroll, review, and select a record from the database.  The error is 429 which says that I don't have a proper license for the Active X control in question.  The error occurs on the frmName.Show event.  I added
grid32.ocx and dbgrid.ocx to c:\winnt\system32 and ran regsvr32.exe c:\winnt\system32\dbgrid32.ocx and regsvr32.exe c:\winnt\system32\grid32.ocx. Thiis still didn't solve the problem.  What is the best way to approach this problem?
0
Comment
Question by:JamesGTX
  • 3
4 Comments
 
LVL 32

Expert Comment

by:Erick37
ID: 12174012
If you are getting this error running the executable on a different machine, you need to use a tool like the Package and Deployment Wizard to create a setup package for you.  The setup program will install and register all of your program's dependencies for you.

Hope it helps!
0
 
LVL 32

Expert Comment

by:Erick37
ID: 12174144
If you use the dbGrid inside a UserControl:

"Licensed controls that come with Visual Basic that cannot be used inside a UserControl include Crystal(crystl32.ocx)and DBGrid(dbgrid32.ocx)."
http://support.microsoft.com/default.aspx?scid=kb;en-us;175325
0
 

Author Comment

by:JamesGTX
ID: 12174197
Hmmm...that is interesting. The thing is that on another machine the project loads and runs just fine.  I was reviewing the .dll and .ocx files that are required by the project.  We have a setup.exe that loads all fo the required .dll and .ocx files.  However, some of the .dll and .ocx files are older than the ones on my machine. Could the problem stem from these newer .ocx files? I wasn't sure that allowing the setup program to replace them was a good idea.
0
 
LVL 32

Accepted Solution

by:
Erick37 earned 250 total points
ID: 12180401
You may try to run regsvr32 with the unregister switch first.

regsvr32 /u dbgrid32.ocx

A messagebox will appear telling you it unregistered successfully.

Then run

regsvr32 dbgrid32.ocx

And confirm that it registers correctly.

Besides that, the only other thing I can suggest is to update your development machine so that you are developing using the most current components.

Good Luck!
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

856 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