FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour Como registrar un control Active-X
Posts: 7
Joined: Mon Nov 28, 2005 05:49 PM
Como registrar un control Active-X
Posted: Fri Feb 03, 2006 05:58 PM

Saludos.

Alguien sabe como puedo registrar un archivo OCX sin utilizar el regsvr32.exe y hacerlo desde mi programa de instalacion?.

Arturo.

Posts: 219
Joined: Fri Nov 04, 2005 02:34 PM
Re: Como registrar un control Active-X
Posted: Fri Feb 03, 2006 10:07 PM
ArturoCervantes wrote:Saludos.
Alguien sabe como puedo registrar un archivo OCX sin utilizar el regsvr32.exe y hacerlo desde mi programa de instalacion?.
Arturo.


tomado de la ayuda del InnoSetup, espero te sirva:

Prototype:
procedure RegisterServer(const Is64Bit: Boolean; const Filename: String; const FailCriticalErrors: Boolean);
Description:
Registers the DLL/OCX with the specified filename. If Is64Bit is True, the DLL/OCX will be loaded as a 64-bit image and registered in a 64-bit process. If FailCriticalErrors is True, the system will not display any critical-error-handler message boxes. Raises an exception if not successful.
Example:
begin
// Register hhctrl.ocx located in the System directory.
RegisterServer(Is64BitInstallMode, ExpandConstant('{sys}\hhctrl.ocx'), False);
end;

Because we specify Is64BitInstallMode in the first parameter, it will register the 64-bit OCX in the 64-bit System directory when Setup is running in 64-bit mode. Otherwise, it will register the 32-bit OCX in the 32-bit System directory.
Juan Carlos Salinas Ojeda

México. D.F.

-------------------------------------------------

Continue the discussion