Register DLLs and OCX files in Windows Vista (REGSVR32)

If you are also facing same problem as I have been facing while trying to register custom DLL files in Vista as whenever I issued following command –

REGSVR32 C:\xxx.dll?

I have a turn around for that. I received error regarding User Access Control.

Even when you try to run any executable file in Vista, every time it asks you to confirm if you want to run that program or not as if it doesn’t believe that you are the one who tried to open that program.

 

Vista User Account Control

 

If you think that you can manage it enough by yourself, you can go for disabling this prompt as I did. For that you will need to go to Control Panel > User Accounts and Family Safety > User Accounts and there click Turn User Account Control on or off. Unselect Use User Account Control (UAC) to help protect your computer option and click OK. That’s it. Now try to register your DLLs and you would be able to do that without any hiccups.

 

Also there is shortcut method to do that from command line –

Disable UAC:

C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe
ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f

 

Enable UAC:

C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe
ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 1 /f

 

Reboot your system and you are done.

 

And if you are getting this error while registering your DLLs –

The module REGSVR32 “C:\Program Files\xxx.dll? failed to load.

Make sure the binary is stored at the specified path or debug it to check for problems with the binary or dependent .DLL files.

The specified module couldn’t be found.

.

(I don’t know why that extra dot in the end – may be UI bug from Vista team!) 

 

It means you are not giving proper path. Try to correct the path for your DLL and you will be able to register it.

11 thoughts on “Register DLLs and OCX files in Windows Vista (REGSVR32)”

  1. Dear Sir

    I have developed sinhala soft ware. I installed this software for windows vista. After installing this software I run this command (regsever32 checktbm.ocx) then there appears a error command (error code 0x80040200). So please give me a solution to register this file.

    Thanking you.

  2. Respected Sir,

    Hear i am facing one problem to register .ocx or .Dll file and i am able to load one ocx and dll file to load but when i try to load another ocx and dll file it shows failed to load Make sure the binary is stored at the specified path but i already stored that file in system32 folder that file name is ‘msvbvm50.dll’ and ‘nslock15vb5.ocx’ now please guid me what should i do at this stage and because of this problem i am not able to run some of our software.

    Thankyou

  3. For registering an OCX control in windows vista you should run command prompt as an administrator clicking it with the right mouse button to display the dropdown list. Then change to the system directory with the command line “cd:\windows\system32”, and the type “regsvr32 controlname.ocx”

    att. Kelvin

  4. You can also enable the Windows “Administrator” in Vista with the command in an elevated command prompt:

    net user administrator /active:yes

    Hope this helps 😉

  5. Hi i am trying to register prjChameleon.ocx using regsvr32 and i end up with error message saying
    “prjChameleon.ocx” module not found

    Make sure the binary is stored at the specified path or debug it to check for problems with the binary or dependent .DLL files.

    The specified module couldn’t be found.

    .

    the path is correct and i am running cmd on administrator in vista. and i have tried on filemon to see what dependent dll it was looking for and there is no commandline… please email me or message here. please anyone help!!!! help please!! E-mail dhaval.hero33@gmail.com

  6. Hi,

    I have the same issue too,
    I’m getting the following error:

    Make sure the binary is stored at the specified path or debug it to check for problems with the binary or dependent .DLL files.

    Recursion too deep; the stack overflowed.

    Any ideas?
    Thank you.

  7. HI,
    MY NAME IS SHAILESH,
    I HAVE DEVELOPED RETAILS SOFTWARE AND WANT TO RUN MY SOFTWARE ON WIN VISTA. BUT THERE IS OCCURING ERR. OF OCX REGISTER.
    SO PLEASE TELL ME HOW CAN I SOLVE THIS PROBLEM.
    PLEASE IT’S URGENT, HELP ME.
    I LL WAIT FOR UR REPLY.
    PLEASE INFORM ME ON : swaghule@rediffmail.com

  8. Yes “REGSVR32 C:\xxx.dll?” this is quite a common error which everyone who are all dotnet professionals will face during their deployment. I too faced. But i was managed to solve but i didnot get any complete solution. After reading your blog i had a clear idea and now i can solve these kind of errors. Thanks to this blog team. Good approach.Screenshots and explanations are very clear.Keep it up.

    http://gloriatech.com/microsoft-net-development-services.aspx

  9. i see this message please help me!!!

    The module “RaveButtons.ocx” was loaded but the call
    to DllRegisterServer failed with error code 0x80004005.

    For more information about this problem, search
    online using the error code as a search term.

Leave a Reply

Your email address will not be published. Required fields are marked *