Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 222
  • Last Modified:

DllRegisterServer failure

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
jlgrant
Asked:
jlgrant
  • 4
1 Solution
 
Tommy HuiCommented:
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
 
jlgrantAuthor Commented:
What is the tstcon32.exe application?
0
 
jlgrantAuthor Commented:
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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
jlgrantAuthor Commented:
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
 
jlgrantAuthor Commented:
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
 
mithomasCommented:
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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.

  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now