From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4fd79a550e1a2b09 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-05-28 10:40:02 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.uchicago.edu!newsswitch.lcs.mit.edu!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: GNAT, Windows, DLLs Date: 28 May 2003 13:39:59 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <3ED4FA4D.C8823BB8@alfred-hilscher.de> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls4.std.com 1054143599 31564 199.172.62.241 (28 May 2003 17:39:59 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Wed, 28 May 2003 17:39:59 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:37924 Date: 2003-05-28T13:39:59-04:00 List-Id: Alfred Hilscher 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