Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Register comdlg32.dll gets Regsvr32: DllRegisterServer entry point was not found

I have Windows 7, 64-bit.

I'm trying to register a .dll (comdlg32.dll) using regsvr32. But I get an error that says the dll is read but the DLLRegistryServer entry point is not found.

I have run the command under both System32 and SysWOW64 and I have run my commands with "Run As Administrator".

My old MSComDlg.CommonDialog component is no longer working with 64-bit.

like image 383
disasterkid Avatar asked Dec 18 '12 10:12

disasterkid


People also ask

How do I fix DLLRegisterserver not found?

Go to the C:/Windows/SysWow64 directory, and then right-click the empty space within the SysWow64 folder and select Paste. After that, you can open an elevated Command Prompt and re-register the OCX DLL file to see if the “entry point DLLRegisterserver was not found” gets solved.

How do I register a DLL with regsvr32?

Register 32 or 64-bit DLLs in Windows Step 1: First click on Start, then Run. Step 2: Now all you have to do to register a DLL file is to type in the regsvr32 command, followed by the path of the DLL file. Step 3: Now click OK and you should get a confirmation message that the DLL has been registered successfully.


1 Answers

comdlg32.dll is not a COM DLL and cannot be registered.

One way to confirm this for yourself is to run this command:

dumpbin /exports comdlg32.dll 

You'll see that comdlg32.dll doesn't contain a DllRegisterServer method. Hence RegSvr32.exe won't work.

That's your answer.


ComDlg32.dll is a a system component. (exists in both c:\windows\system32 and c:\windows\syswow64) Trying to replace it or override any registration with an older version could corrupt the rest of Windows.


I can help more, but I need to know what MSComDlg.CommonDialog is. What does it do and how is it supposed to work? And what version of ComDlg32.dll are you trying to register (and where did you get it)?

like image 188
selbie Avatar answered Oct 04 '22 11:10

selbie