comp.lang.ada
 help / color / mirror / Atom feed
From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: GNAT, Windows, DLLs
Date: 28 May 2003 13:39:59 -0400
Date: 2003-05-28T13:39:59-04:00	[thread overview]
Message-ID: <wccvfvv0y34.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: 3ED4FA4D.C8823BB8@alfred-hilscher.de

Alfred Hilscher <Spam@alfred-hilscher.de> writes:

> I have the follwing problem: In gnat_ug it is said, that the code has to
> call _ada_initialize first and _ada_finalize at last. But - my DLL shall
> replace an existing third party DLL. So the applications using this DLL
> are not Ada-aware, and there is no way to tell them "hey the DLL is
> replaced, you have to call now an initialize-procedure first, and you
> must call this finalize-procedure at the end". So is there a way to make
> this initializing/finalizing transparent?

I don't know.  Surely there's some way to attach initialization code to
a DLL?

>... What can happen, if one/both
> of them are _not_ called?

All of your library-level initialization and finalization code will be
skipped.

- Bob




  reply	other threads:[~2003-05-28 17:39 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-28 18:05 GNAT, Windows, DLLs Alfred Hilscher
2003-05-28 17:39 ` Robert A Duff [this message]
2003-05-28 18:14   ` Jano
2003-05-29  9:17     ` Dmitry A. Kazakov
2003-05-29 13:10       ` Alfred Hilscher
replies disabled

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