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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,476311ae1fc1d6fc X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-10-04 00:53:47 PST Path: archiver1.google.com!news2.google.com!newsfeed.stanford.edu!newsfeed.berkeley.edu!ucberkeley!freenix!proxad.net!feeder2-1.proxad.net!news2-1.free.fr!not-for-mail From: "Patrice Freydiere" Subject: Re: DLLs / shared objects Date: Sat, 04 Oct 2003 09:58:27 +0200 User-Agent: Pan/0.13.0 (The whole remains beautiful) Message-ID: Newsgroups: comp.lang.ada References: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Organization: Guest of ProXad - France NNTP-Posting-Date: 04 Oct 2003 09:53:46 MEST NNTP-Posting-Host: 62.147.49.242 X-Trace: 1065254026 news2-1.free.fr 27013 62.147.49.242:33015 X-Complaints-To: abuse@proxad.net Xref: archiver1.google.com comp.lang.ada:196 Date: 2003-10-04T09:53:46+02:00 List-Id: On Sat, 04 Oct 2003 01:47:43 +0200, kat-Zygfryd wrote: > I'd like to have a plugin system in my Ada program - > loading functions/procedures from dll's/so's unknown at compiletime, > but found by the app at runtime. All information I found concerned > .... > InitProc := ObtainInitProc(SomeDLL); <--- ??? > InitProc(SetFunc); > end loop; Hi, there is solutions for each system supporting dynamic library loading. You can use the Win API to do so for Windows plateforme There is an example in AdaPower source repository there is a AdaPlugin project for Linux that use Dynamic Glib Module functionnality. (i don't remember the URL) or DLib -> http://www.ada-france.org/article94.html I've never saw an ada project that make an abstraction and proprose a common approch of "plugin",that manage the different plateforms. Cheers, Patrice