Ver Mensaje Individual
  #1  
Antiguo 18-09-2011
NovatoEnObjetos NovatoEnObjetos is offline
Miembro
 
Registrado: jul 2007
Posts: 23
Reputación: 0
NovatoEnObjetos Va por buen camino
Ejecutar form de un dll

Hola amigos del foro tengo una duda que seguramente para ustedes sera algo muy simple...
Tengo un dll pero no sé como ejecutarlo y mostrarlo en pantalla.

Código Delphi [-]
library Proyecto;

{ Important note about DLL memory management: ShareMem must be the
  first unit in your library's USES clause AND your project's (select
  Project-View Source) USES clause if your DLL exports any procedures or
  functions that pass strings as parameters or function results. This
  applies to all strings passed to and from your DLL--even those that
  are nested in records and classes. ShareMem is the interface unit to
  the BORLNDMM.DLL shared memory manager, which must be deployed along
  with your DLL. To avoid using BORLNDMM.DLL, pass string information
  using PChar or ShortString parameters. }

uses
  SysUtils,
  Classes,
  Main,
  Forms,
  pantalla in 'pantalla.pas' {miform};

{$R *.res}

function miform(xMain : TFMain) : TForm ;
begin
 result := Tmiform.Create(XMain) ;
end ;


exports miform;
begin
end.


agrego el codigo que tengo para ver si me pueden ayudar(eso no lo dudo).
Y de antemano agradesco

Última edición por NovatoEnObjetos fecha: 18-09-2011 a las 00:54:02. Razón: no aplique bien la sintaxis delphi
Responder Con Cita