Solved

DllRegisterServer failure

Posted on 1998-09-01
6
215 Views
Last Modified: 2008-01-16
I have written an OCX in Visual Basic (VB5).  The OCX installs and executes properly on most computers, both Win95 and WinNT.  However, on some systems, we get the error message "DllRegisterServer in (OCX name)failed," and the OCX does not register.  There is no error number or additional information with this error.  I suspect that the systems on which the register fails are missing some DLL that the OCX needs to execute, but I can't identify any missing components.
Does anyone have any suggestions as to what is causing this failure, and how to fix it?
Thank you
Jim Grant
0
Comment
Question by:jlgrant
  • 4
6 Comments
 
LVL 15

Expert Comment

by:Tommy Hui
ID: 1432368
You're probably missing a DLL. Go to http://www.slip.net/~thui and go to the shareware section. Get DLLLook and use it to find out which DLLs your OCX requires. Use it on the tstcon32.exe application. Then make sure each of the other machines have those DLLs.
0
 

Author Comment

by:jlgrant
ID: 1432369
What is the tstcon32.exe application?
0
 

Author Comment

by:jlgrant
ID: 1432370
I followed the above suggestion.  DLLLook indicated that the following DLL's are used by the OCX:

         OLEAUT32.dll
         ole32.dll
         ADVAPI32.dll
         GDI32.dll
         USER32.dll
         KERNEL32.dll
         MSVBVM50.DLL
         WINSPOOL.DRV

All of these DLL's are on at least one system where the installation fails.

Any more suggestions.
0
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.

 

Author Comment

by:jlgrant
ID: 1432371
I followed the above suggestion.  DLLLook indicated that the following DLL's are used by the OCX:

         OLEAUT32.dll
         ole32.dll
         ADVAPI32.dll
         GDI32.dll
         USER32.dll
         KERNEL32.dll
         MSVBVM50.DLL
         WINSPOOL.DRV

All of these DLL's are on at least one system where the installation fails.

Any more suggestions.

0
 

Author Comment

by:jlgrant
ID: 1432372
This suggestion didn't locate the problem.  The DLL's DLLLook indicated were necessary to execute were present on at least one system where registration failed.
0
 
LVL 1

Accepted Solution

by:
mithomas earned 200 total points
ID: 1432373
Try this as a long shot:

There is more than one version of regsvr32 floating around.  There were AT LEAST TWO on my last major development effort.  Sometimes, using the "wrong" version of regsvr32 can cause the problem.

Compare the date/time info and version info of regsvr32 (right click on the .exe and look at the version tab) on the problem machines and "good" machines.  Ensure that the problem machines are using the same regsvr32 that the "good" machines are using.  Also, do a find for regsvr32 and ensure that there's only one copy of it, and that it matches the machine on which installations work.

Good luck...
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

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.
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…

760 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

19 Experts available now in Live!

Get 1:1 Help Now