Ver Mensaje Individual
  #2  
Antiguo 07-11-2007
Avatar de dec
dec dec is offline
Moderador
 
Registrado: dic 2004
Ubicación: Alcobendas, Madrid, España
Posts: 13.142
Reputación: 36
dec Tiene un aura espectaculardec Tiene un aura espectacular
Hola,

Advierto de que muy probablemente esté equivocado, pero, ¿no tendrá algo que ver con el uso de "string" como resultado de la función? Tal vez debería usarse "PChar", o, en su defecto, hacer caso al "aviso" que aparece cuando inicias un nuevo proyecto de DLL en Delphi:

Código Delphi [-]
{ 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. }

Ya digo que tengo la impresión de que el problema no va por ahí, pero,... no sé...
__________________
David Esperalta
www.decsoftutils.com
Responder Con Cita