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=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4263b4a969a750a X-Google-Attributes: gid103376,public From: Stephen Leake Subject: Re: Ada in control - Win32 GUI - Possible? Date: 1997/11/04 Message-ID: <345F4B6A.7FDA@gsfc.nasa.gov>#1/1 X-Deja-AN: 286992306 References: <63m6qh$gpc$1@tsunami.traveller.com> Reply-To: Stephen.Leake@gsfc.nasa.gov Organization: NASA Goddard Space Flight Center -- Greenbelt, Maryland USA Newsgroups: comp.lang.ada Date: 1997-11-04T00:00:00+00:00 List-Id: Dave Smith wrote: > > > > Can an Ada program be in control of a Win32 GUI? > > be "in control"> Every Win32 application has exactly one message loop that runs all the windows. Actually, each thread can have a message loop, but things are MUCH simpler if only one thread has windows. If your DLL can contain a thread (sorry, task), that manages its resources, there should be no problem. Or maybe you only need protected objects. I'm not clear what you mean by "in control". The DLL has an init procedure called when it is loaded; that does the Ada elaboration. Ada finalization takes care of cleaning up. What more "control" do you need? -- - Stephe