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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,db742f6328647f85,start X-Google-Attributes: gid103376,public From: jerry@jvdsys.nextjk.stuyts.nl (Jerry van Dijk) Subject: Re: DOS to Windows Port - ObjectAda 7.1 Date: 1997/08/13 Message-ID: <871489363.42snx@jvdsys.nextjk.stuyts.nl>#1/1 X-Deja-AN: 263983095 Distribution: world References: <871418132.22905@dejanews.com> Organization: *JerryWare HQ*, Leiden, Holland Newsgroups: comp.lang.ada Date: 1997-08-13T00:00:00+00:00 List-Id: In article <871418132.22905@dejanews.com> jtdossett@sep.com writes: >I'd like to run a Windows GUI which polls the main real-time task for >data and displays it periodically. However, my attempts at adding this >GUI have failed miserably. I've read in the Win32Ada documentation that >using tasks w/o window threads is usually okay, and running a single >windows thread is okay, but if you try to mix the two, complications may >occur. >Any suggestions/ideas would be appreciated! This is admitedly a hobby horse of mine, but why mix functional and user-interface code in one program ? Add a monitor task to the bare-bones program and write an completely separate GUI program to display the data. There are several ways both programs could communicate under Win95, but using winsock your UI program could even run another machine, of keep track of multiple test machines. Even better, you could write another program polling the test monitor regulary in the background and storing the data into a database for later analysis. Remember: pre-emptive multi-tasking and interproces communication are about the only benefits Win95 has over DOS, so you better use it :-)) (of course, OS/2 would do this even better ) -- -- Jerry van Dijk | Leiden, Holland -- Consultant | Team Ada -- Ordina Finance | jdijk@acm.org