Ver Mensaje Individual
  #1  
Antiguo 24-04-2013
Avatar de elcharlie
elcharlie elcharlie is offline
Miembro
 
Registrado: mar 2013
Ubicación: Bilbao
Posts: 193
Reputación: 14
elcharlie Va por buen camino
Reducir Tamaño DLL en XE3

Buenas:
Estoy Utilizando por primera vez el Delphi XE3, y al crear una dll, veo que al generarla ocupa 1.5 megas en release y 10 mb en debug, y en delphy 7 100 kb.
La dll no tiene nada, es una chorrada, pero no consigo bajarle el tamaño. He estado mirando por ahi, pero aun asi no consigo bajarle mas que 300 kb.
Alguien Sabe algo?
dejo el codigo por si alguien quiere hacer la prueba
Código Delphi [-]
library UnioxDll;

{ 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. }

{$IF CompilerVersion >= 21.0}
{$WEAKLINKRTTI ON}
{$RTTI EXPLICIT METHODS([]) PROPERTIES([]) FIELDS([])}
{$IFEND}
uses
  System.SysUtils,
  Vcl.Forms,
  System.Classes;

{$R *.res}

function Mensaje( mensaje: PAnsiChar):boolean;stdcall;
var
 mens: String;
begin
  mens:= String(mensaje);
  Application.MessageBox(pChar(mens),'',0);
  result:= True;
end;

exports Mensaje;
begin
end.
Responder Con Cita