Club Delphi  
    FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Otros temas > Trucos
Registrarse FAQ Miembros Calendario Guía de estilo Temas de Hoy

Los mejores trucos

Respuesta
 
Herramientas Buscar en Tema Desplegado
  #1  
Antiguo 30-06-2006
Avatar de dec
dec dec is offline
Moderador
 
Registrado: dic 2004
Ubicación: Alcobendas, Madrid, España
Posts: 13.107
Poder: 34
dec Tiene un aura espectaculardec Tiene un aura espectacular
Registrar un ActiveX sin utilizar RegSvr32.exe

Registrar un ActiveX sin utilizar RegSvr32.exe

Código Delphi [-]
var
  i     : TCLSID;
  hOCX  : integer;
  pReg  : procedure;
begin
  { Check ocx registration. }
  try
    i := StringToClassID('SoftwareFX.ChartFX.20');
  except
    hOCX := LoadLibrary( 'CFX32.OCX' );
    if (hOCX  >= HINSTANCE_ERROR) then begin
      try
        pReg := GetProcAddress(hOCX,'DllRegisterServer');
        if (@pReg <> nil) then
          pReg  { Call the registration function }
        else
          MessageDlg('Error in registering OCX control.');
      finally
        FreeLibrary(hOCX);
      end;
    end else
      MessageDlg('Error in loading OCX control.', mtError, [mbok],0);
  end;

  Application.Initialize;
Responder Con Cita
Respuesta



Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro


La franja horaria es GMT +2. Ahora son las 08:57:02.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi