Solved

App not working on users PC

Posted on 2000-05-03
11
160 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
Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…

829 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