Solved

Error : Object server not correctly registered.

Posted on 1997-09-19
3
235 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
  • 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
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…
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…

809 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