Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Help a novice programmer....

Posted on 2004-09-28
4
Medium Priority
?
172 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
[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
  • 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 750 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

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…
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.
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…
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…
Suggested Courses

719 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