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,ba7b74d2699f2def X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-02-27 12:47:44 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!logbridge.uoregon.edu!newsfeed.dacom.co.kr!intgwlon.nntp.telstra.net!news.telstra.net!vicpull1.telstra.net!not-for-mail Message-ID: <3C7D4765.EDFCCAD@chariot.net.au> From: john donoghue X-Mailer: Mozilla 4.78 [en] (X11; U; Linux 2.4.7-10 i686) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: object ada, visual c and tasking combined. References: <3C6CC24D.D013A4AC@chariot.net.au> <3c7780e1.308904750@news.cis.dfn.de> <3C7A288B.9875C255@chariot.net.au> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Organization: Chariot Internet - http://www.chariot.net.au X-Original-NNTP-Posting-Host: 127.0.0.1 Date: Thu, 28 Feb 2002 07:23:58 +1030 NNTP-Posting-Host: 203.87.95.150 X-Complaints-To: abuse@telstra.net X-Trace: vicpull1.telstra.net 1014842779 203.87.95.150 (Thu, 28 Feb 2002 07:46:19 EST) NNTP-Posting-Date: Thu, 28 Feb 2002 07:46:19 EST Xref: archiver1.google.com comp.lang.ada:20532 Date: 2002-02-28T07:23:58+10:30 List-Id: Randy Brukardt wrote: > >The C task was a windows thread. > >The data beging passed around could have been anything - it didnt > matter even > >if I never used the value being passed in. Just calling the ada code > from > >another windows task caused problems. > > > >I gave up on MFC and am using some c++ classes I have written > previously that > >use just the basic win32. > >These dont have any tasks created for messages pumps or anything, and > so > >allows me to create a task in ADA that processes the message loop and > allows > >me to keep all tasks as ada ones. > >... no more unknown application closing now :) > > If you really need a task safe GUI, you should look into Claw. Claw > provides a task-safe object-oriented Ada interface to Windows, if you > used it, you wouldn't need any C at all. And its a lot easier to use > than writing raw Win32 (in any language). You can look at the > Introductory version at www.rrsoftware.com/htmp/prodinf/claw.htm. > > Randy Brukardt. > Disclaimer: I'm one of the authors of Claw. Well C++ is my language of choice ... when I have a choice :) I have programmed win32 for quite a few years before having to stry across onto the dark side for MFC. I have written several C++ classes for win32 programming which, when I get to put them on the web, will be at ezwin.sourceforge.net ( project info: http://sourceforge.net/project/ezwin/?group_id=47473 )