How to register a DLL in the system?

Asked

Viewed 1,355 times

2

I have a DLL that I can’t register in the system.

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

To register on the system(W7 64bits), I do so:

C>regsvr32 Genquickrpt001.dll

After putting the DLL in windows System32, I have this message: inserir a descrição da imagem aqui

If I put the dll in Syswow64, it gives this other message: inserir a descrição da imagem aqui

I know there is a way to register by Delphi when working with DLL.

How do I do it?

  • tries the following: C:%windir% Syswow64 regsvr32 Genquickrpt001.dll

  • @Cantoni, keeps giving the same error.

  • You have already tried running the command from within a prompt like "Administrator"? This page shows some solutions to this type of problem

  • @Gomiero, does not run for anything, can not install. But the original DLL, I can install. There must be some restriction when compiling, which may be preventing the record. Nothing has changed, this I can guarantee from the original sources. But if you rotate in the colleague’s machine, you keep giving that stick. What can prevent?

1 answer

2

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

If you get an error registering a 32-bit DLL in a 64-bit version of Windows, follow these steps:

  1. Open a command prompt with high privileges.

  2. If the 32-bit DLL is in the folder %systemroot% System32, move it to the folder %systemroot% Syswow64.

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

Source!

Related to several possible solutions!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.