Solved

Help a novice programmer....

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

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 69
Excel - Save a copy of work book 13 84
Run code from text file in vb 1 64
Send outlook email from VBS Script 2 28
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 …
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…
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…

816 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

8 Experts available now in Live!

Get 1:1 Help Now