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:
Is put to dll not SysWOW64, gives this other message:
I know that there is a way to do the registration by Delphi, when working with DLL.
How do I do this?
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:
Open a command prompt with elevated privileges.
If the 32-bit DLL is in the %systemroot%\system32 folder, move it to the folder % systemroot% \ SysWoW64 .
Run the following command:
%systemroot%\SysWoW64\regsvr32 <caminho completo da DLL>