Solved

Help a novice programmer....

Posted on 2004-09-28
4
166 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

930 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now