Article View: borland.public.cppbuilder.nativeapi
Article #11262Re: Problems using "SwitchDesktop"
From: Ted Byers
Date: Sat, 21 Feb 2004 05:32
Date: Sat, 21 Feb 2004 05:32
27 lines
2500 bytes
2500 bytes
"Remy Lebeau (TeamB)" <gambit47.no.spam@no.spam.yahoo.com> wrote in message news:4036cda7$1@newsgroups.borland.com... > [snip] > They wouldn't really need to communication back and forth. The first app > sets up the desktop, spawns the second app, and waits for it to terminate. > Then second app could then use its exit code to specify to the first app > whether the program succeeded or failed or whatever. > I supppose that is true normally. But in this case the child process needs to tell the parent process how well the user has done on a given test so that the parent process can setup a timer based on the score and whatever policy has been established by the parent or teacher. I.e., if the user (assumed to be a child still in elementary school in this case) aces an elementary test, he gets to use the computer for half an hour, but if he aces the hardest test, he gets to use the computer for three hours, or whatever the parent or teacher believes to be appropriate. So I guess the communication is only one way: from the child back to the parent. You might ask "What happens after the allotted time has expired?" The parent process will give the user the options either of logging off or of returning to my program with its own desktop, in order to try again with a more challenging test. Cheers, Ted
Technical Details
Message-ID:
<4036ec5c$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<403642b4$1@newsgroups.borland.com> <40366663$1@newsgroups.borland.com> <403677f3@newsgroups.borland.com> <40368dfe$1@newsgroups.borland.com> <4036cb2f$1@newsgroups.borland.com> <4036cda7$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,90c150c625365b29 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-02-20 21:39:13 PST From: "Ted Byers" <r.ted.byers@sympatico.ca> Newsgroups: borland.public.cppbuilder.nativeapi References: <403642b4$1@newsgroups.borland.com> <40366663$1@newsgroups.borland.com> <403677f3@newsgroups.borland.com> <40368dfe$1@newsgroups.borland.com> <4036cb2f$1@newsgroups.borland.com> <4036cda7$1@newsgroups.borland.com> Subject: Re: Problems using "SwitchDesktop" Date: Sat, 21 Feb 2004 00:32:14 -0500 Lines: 29 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 65.95.240.180 Message-ID: <4036ec5c$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1077341276 65.95.240.180 (20 Feb 2004 21:27:56 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail