Solved

App not working on users PC

Posted on 2000-05-03
11
156 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
 
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
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

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…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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 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…

744 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

12 Experts available now in Live!

Get 1:1 Help Now