Article View: borland.public.cppbuilder.nativeapi
Article #11260Re: Problems using "SwitchDesktop"
From: Ted Byers
Date: Sat, 21 Feb 2004 03:10
Date: Sat, 21 Feb 2004 03:10
38 lines
2574 bytes
2574 bytes
"Remy Lebeau (TeamB)" <gambit47.no.spam@no.spam.yahoo.com> wrote in message news:40368dfe$1@newsgroups.borland.com... > > "Ted Byers" <r.ted.byers@sympatico.ca> wrote in message > news:403677f3@newsgroups.borland.com... > > > Alas, the behaviour with this is identical to my first attempt. > > I see that you are not even checking any of the return values at all. For > all you know, any of the API functions could be failing and you are ignoring > it. What are the actual return values for each call? > That is because I have only begun to develop this. I haven't begun to figure out how best to handle any error conditions that might arise from this. > > Of the flags I can use: > > What happens if you try specifying all flags? > The same thing that happened with the code I showed you. This suggests that maybe your suggestiong that: "the global TApplication object has already created its own internal window before main() is even entered. That might effect how things behave, since the TApplication window would be associated with the default desktop while the actual MainForm would be associated with your custom desktop instead." might need to be explored. If I need to develop two programs, one of which being the program I've been working with and the other being responsible for managing the desktop, I'll need to figure out a neat, efficient way to have the two talk to each other: perhaps via a named pipe or perhaps by have each send the other a message as required. Thanks, Ted
Technical Details
Message-ID:
<4036cb2f$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!proxad.net!newsfeed.tpinternet.pl!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>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 19:09:11 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> Subject: Re: Problems using "SwitchDesktop" Date: Fri, 20 Feb 2004 22:10:46 -0500 Lines: 40 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: <4036cb2f$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1077332783 65.95.240.180 (20 Feb 2004 19:06:23 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!proxad.net!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail