Article View: borland.public.cppbuilder.nativeapi
Article #11263Re: Problems using "SwitchDesktop"
From: Bob Gonder
Date: Sat, 21 Feb 2004 07:37
Date: Sat, 21 Feb 2004 07:37
19 lines
2271 bytes
2271 bytes
Ted Byers wrote: > >"Remy Lebeau (TeamB)" <gambit47.no.spam@no.spam.yahoo.com> wrote in message >> 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 would be the "exit code" Remy mentioned. You just need to decide what values you want to return, for which conditions. You could, for instance, return the number of minutes allowed. Returning 0 minutes would mean shut-down. Any other exit code would allow the student to play for that many minutes, then the app relaunches the second desktop and program.
Technical Details
Message-ID:
<u92e309no5g91od7csldiid4gieaopar2v@4ax.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!news.octanews.net!news.tele.dk!news.tele.dk!small.news.tele.dk!npeer.de.kpn-eurorings.net!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> <4036ec5c$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 23:39:23 PST From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Problems using "SwitchDesktop" Date: Fri, 20 Feb 2004 23:37:25 -0800 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <u92e309no5g91od7csldiid4gieaopar2v@4ax.com> 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> <4036ec5c$1@newsgroups.borland.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 67.31.165.36 X-Trace: newsgroups.borland.com 1077349045 67.31.165.36 (20 Feb 2004 23:37:25 -0800) Lines: 23 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!news.octanews.net!news.tele.dk!news.tele.dk!small.news.tele.dk!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail