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-25 12:09:22 PST Path: archiver1.google.com!news2.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!logbridge.uoregon.edu!sn-xit-03!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: object ada, visual c and tasking combined. Date: Mon, 25 Feb 2002 14:10:21 -0600 Organization: Posted via Supernews, http://www.supernews.com Message-ID: References: <3C6CC24D.D013A4AC@chariot.net.au> <3c7780e1.308904750@news.cis.dfn.de> <3C7A288B.9875C255@chariot.net.au> X-Newsreader: Microsoft Outlook Express 4.72.3612.1700 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3719.2500 X-Complaints-To: newsabuse@supernews.com Xref: archiver1.google.com comp.lang.ada:20392 Date: 2002-02-25T14:10:21-06:00 List-Id: >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.