comp.lang.ada
 help / color / mirror / Atom feed
From: Leif Holmgren <nobody@nowhere.com>
Subject: Re: delphi to ada translator
Date: Mon, 23 Feb 2004 22:35:51 +0100
Date: 2004-02-23T22:35:51+01:00	[thread overview]
Message-ID: <403A7237.90103@nowhere.com> (raw)
In-Reply-To: rlac30hkd34c89n9dug38ub47mpmvog4do@4ax.com

Craig Carey wrote:
> Has anybody succeed in putting Delphi code inside of a DLL and
> getting it called by a GNAT Ada 95 main program (inside of a *.exe
> file) ?.

Yes, I have about 2 years ago, using Delphi 3 and gnat 3.15a1. It took a 
while to figure out how to generate the files required by gnat. 
(.lib-files?). All the tools needed was available with gnat. I also 
think I remember

> Any URLs saying how to put Delphi GUIs inside of DLLs ?.
No, Did this with Delphi 1 in 1995 (called from a VB3 app). Never caused 
any problems. Autocreate of forms naturally won't work. You create an 
procedural interface that call the form-stuff inside the DLL.

You should also be able to create an ActiveX interface that you can use 
from Ada, but all my attempts to do this has resulted in loads of 
unreadable code that worked but was not reliable. I guess it leaked 
memory but I could never find the leaks. Do a web-search for a package 
called gnatcom. It contains the stuff you need for Ada/COM interfacing.

Sorry for not beeing able to be very precise. I really don't remember 
how I did most of this stuff.

/Leif




      reply	other threads:[~2004-02-23 21:35 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-19 20:38 delphi to ada translator Szymon Guz
2004-02-19 20:44 ` Delphi to Ada translator Jacob Sparre Andersen
2004-02-19 20:54   ` Szymon Guz
2004-02-20  8:52     ` Jacob Sparre Andersen
2004-02-19 20:53 ` delphi to ada translator Randy Brukardt
2004-02-19 21:26 ` Gautier Write-only
2004-02-20 15:51 ` Craig Carey
2004-02-23 21:35   ` Leif Holmgren [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox