Solved

App not working on users PC

Posted on 2000-05-03
11
159 Views
Last Modified: 2010-05-02
I am working on an application that allows that brings ups a form to select a winner form a SQL Server table.  When I click on the menu option for this form I get the following error messages-- "ActiveX component can't create object" and "Run-time error '91': Oject variable or with block variable not set".  This works absolutely fine in from my machine in VB, but I get these messages when I create an install the application on to the users PC.
I've been reveiwing my code and everything looks fine.

Can someone please help.
Dave
0
Comment
Question by:KOCUBA
  • 4
  • 3
  • 2
  • +2
11 Comments
 
LVL 1

Expert Comment

by:pauljk
ID: 2773941
Kocuba...

It sounds like you are not copying and registering the OCX's or DLL's that are required by your application to run.  Your computer has the entire development environment and these files already reside there.

0
 

Author Comment

by:KOCUBA
ID: 2773981
I have no dll's.  So if my ocx files, which are included in the setup, are not registering how do I get them registered.

0
 
LVL 1

Expert Comment

by:pauljk
ID: 2774000
Well, the install should register them in the install...  If you used the package and deployment wizard from Visual Studio, you should check the Setup.lst file to see if the files listed there match the files that you have referenced for your project.
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
LVL 32

Expert Comment

by:bhess1
ID: 2774015
Are you using ADO to access the data?  It's possible that the user doesn't have that installed.  See this reference at Microsoft:

HOWTO:  Distribute ADO with the VB5 application setup wizard

http://support.microsoft.com/support/kb/articles/Q184/2/65.ASP?LN=EN-US&SD=gn&FR=0
0
 
LVL 1

Expert Comment

by:schrmar
ID: 2774026
goto a dos prompt and goto the winsys directory.  run regsvr32 with the argument of your ocx name.  Such as
C:\winnt\system32\regsvr32 msadodc.ocx.

Is this on vb5 or vb6? and what version of ado? 2.0 or 2.1.  If 2.0 I would suggest using 2.1.  There seems to be a compatablity issue with 2.0 and 2.1

0
 

Author Comment

by:KOCUBA
ID: 2774166
I have no dll's.  So if my ocx files, which are included in the setup, are not registering how do I get them registered.

0
 
LVL 1

Expert Comment

by:pauljk
ID: 2774184
See schmar's regsvr32 comments.
0
 
LVL 2

Expert Comment

by:bhamilto
ID: 2774436
You can also get the first error (the second is probably related) if you have old versions of ocx/dll's on the end-user machine.  Don't just check if these are registered, also check version info and compare to the development machine.
0
 

Author Comment

by:KOCUBA
ID: 2774510
bhess1,

Please post your answer.  That is what finally worked.

Everyone thank you for your help.

0
 
LVL 32

Accepted Solution

by:
bhess1 earned 100 total points
ID: 2774572
You can accept a comment as an answer.  On the green bar at the top of each comment is a button labeled 'accept comment as answer'.  Just click that button on the comment that answered your problem to accept it.
0
 

Author Comment

by:KOCUBA
ID: 2774643
Sorry. I did not know that that had changed.

Thanks Again
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
how to open Waze.com/livemap from address saved in DB? 26 189
Access 2016 VB code 9 115
VB6 Compile Compatibility Issue 4 102
how to know if my Checkbox is True in VB6.0? 9 53
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…
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…

815 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