Solved

Help a novice programmer....

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
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 …
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…

759 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

19 Experts available now in Live!

Get 1:1 Help Now