Foros Club Delphi

Foros Club Delphi (https://www.clubdelphi.com/foros/index.php)
-   Varios (https://www.clubdelphi.com/foros/forumdisplay.php?f=11)
-   -   Problemas com BPL y DLL de VB6 (https://www.clubdelphi.com/foros/showthread.php?t=79331)

Lunnaticoo 26-06-2012 16:49:41

Problemas com BPL y DLL de VB6
 
Hola..
espero me puedan ayudar con este problemita.
Resulta que estoy haciendo 2 bpl que usan la misma dll , por algun motivo al momento de ejecutar el programa q usa estas bpl, solo me levanta 1 de ellas.
Se que el problema es al usar la dll, ya que si comento al archivo mi_dll_TLB que esta en el uses de una de mis bpls estas si levantan.
La dll que estoy usando la cree en vb 6.0, Esta la importe a mi proyecto "import type library".

Neftali [Germán.Estévez] 26-06-2012 18:18:21

¿Has tenido esto en cuenta?

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


La franja horaria es GMT +2. Ahora son las 01:25:11.

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