Solved

Error : Object server not correctly registered.

Posted on 1997-09-19
3
238 Views
Last Modified: 2013-11-14
HI,

I have developed a simple visual Basic application. It is Reporter and it uses Crystal report 4.0, GRaph control, TrueGrid control, etc. When I prepare my distribution media using InstallShield Express ver. 2.0, it shows me a message like "Could not find windows registry information for Olepro32.dll. You will have to add file manualy." THen I am adding file using explorer. When I install my software on the Windows NT 4.0, It always gives me an error 336 "Object Server not correctly registered". In that system, I have not installed any kind development tools. It is a fresh Windows NT Server.

When I prepare my diskettes using Application WIzard of Visual Basic, I am able to prepare diskettes and I can successfully execute that application. I have One big application and I want to have one installation CD. SO that it is easier for user to install. My one module is VC++ 5.0 and other is Visual Basic 4.0. THis application is on WIndows NT 4.0, Visual Basic 4.0, Crystal Report 4.0 and TrueGrid Ver. 4.0

I would really appreciate your suggestion and guidelines.

Byr,
Dipesh Shah
0
Comment
Question by:dipesh042997
[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
  • 2
3 Comments
 
LVL 5

Accepted Solution

by:
dirtdart earned 100 total points
ID: 1435504
All dlls your program uses have to be registered with Windows.  That is, the information concerning that dll (where it is, what it is, etc) has to be stored in the registry.  Most dlls and custom controls you deal with have the ability to self register, but you have to initiate this.  When using the VB Setup Wiz, this is done automatically for you because the Setup Wiz can create a list of files your program needs to run.  During your setup routine, it then calls the appropriate functions for the dlls to self register.  You can also force InstallShield to do this, but you have to write custom script for it, and I am not familiar enough with InstallShield to talk you through this.  However, as an intermediate step to solving your problem, try this.

After using InstallShield to install your app, make a list of the dlls that were installed on the target machine.  Then use regsvr32.exe (provided with Visual Basic) to manually register the dlls.  The format would look like this:

regsvr32 dllname

where dllname is the full qualified path and name of the dll, including extension.  This will cause the dll to register itself with the Windows registry and will then be accessable to your program once again.

0
 

Author Comment

by:dipesh042997
ID: 1435505
My application is using Microsoft Jet Engine. Do  I need to register dao3032.dll files also ?  I tried one thing. Previously my diskettes did not contain dao3032.dll. After lots of debugging I found out that it is missing. SO I copied that file from another machine. But it did not work. So do I need to register that also ?
0
 
LVL 5

Expert Comment

by:dirtdart
ID: 1435506
Yes, the dao3032.dll also needs to be registered.  EVERY dll that your program uses needs to be registered.  If you have any doubt about a component, try to register it anyway.  If it doesn't need to be registered, regsvr will just give you an error, and no harm will be done.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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 …
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.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month5 days, 7 hours left to enroll

626 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