How to register a DLL in the system?

I have a DLL that I cannot register in the system.

If I take the original DLL, it is registered, but if I take the one that was generated on the company machine, it registers. I don't know if I have to do anything.

To register in the system (W7 64bits), I do like this:

C > regsvr32 GenQuickRpt001.dll

After I put the DLL in windows System32, I have this message: insert the description of the image here

Is put to dll not SysWOW64, gives this other message: insert the description of the image here

I know that there is a way to do the registration by Delphi, when working with DLL.

How do I do this?

Author: Junior Moreira, 2016-02-16

1 answers

Two things, to register a 32-bit DLL you use regsvr32 and for 64-bit DLL you use regsvr32, as the name is the same you should pay attention to the installation folder of each one!

If you receive an error while registering a 32-bit DLL on a 64-bit version of Windows, follow these steps:

  1. Open a command prompt with elevated privileges.

  2. If the 32-bit DLL is in the %systemroot%\system32 folder, move it to the folder % systemroot% \ SysWoW64 .

  3. Run the following command: %systemroot%\SysWoW64\regsvr32 <caminho completo da DLL>

Source!

Related to several possible solutions!

 2
Author: Junior Moreira, 2017-05-23 12:37:30