Article View: borland.public.cppbuilder.nativeapi
Article #6084Re: Opening up Web Browsers inside my App
From: Remy Lebeau (TeamB)
Date: Wed, 08 Jun 2005 00:31
Date: Wed, 08 Jun 2005 00:31
22 lines
2205 bytes
2205 bytes
"Gav" <brightoncomputers@brightontown.com.au> wrote in message news:42a62b57@newsgroups.borland.com... > WaitForInputIdle(CreateProcess, 200); > Sleep(175); You are not passing the correct HANDLE parameter to WaitForInputIdle(), and you are only waiting for a fraction of a second overall. That is too short a time. Get rid of the Sleep() and use a much larger timeout on WaitForInputIdle(), or just use INFINITE. As for the HANDLE parameter to WaitForInputIdle(), you need to use the hProcess member of the PROCESS_INFORMATION structure. > INFINITE does not work. Of course not, because you are not passing a valid HANDLE to WaitForInputIdle() to begin with. Pass in the correct HANDLE, and then it will work. Gambit
Technical Details
Message-ID:
<42a63c20$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newshub.sdsu.edu!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed.hal-mli.net!feeder1.hal-mli.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<422926aa$1@newsgroups.borland.com> <422c31bd$1@newsgroups.borland.com> <422c515c@newsgroups.borland.com> <422c5d8e$1@newsgroups.borland.com> <42a2f6aa$1@newsgroups.borland.com> <42a3910a$1@newsgroups.borland.com> <42a44aa2$1@newsgroups.borland.com> <42a4855c$1@newsgroups.borland.com> <42a588ed@newsgroups.borland.com> <42a5a49d@newsgroups.borland.com> <42a5bb59$1@newsgroups.borland.com> <42a5bdbf@newsgroups.borland.com> <42a5d4dd@newsgroups.borland.com> <42a62b57@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,91b603800ded4d32 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <422926aa$1@newsgroups.borland.com> <422c31bd$1@newsgroups.borland.com> <422c515c@newsgroups.borland.com> <422c5d8e$1@newsgroups.borland.com> <42a2f6aa$1@newsgroups.borland.com> <42a3910a$1@newsgroups.borland.com> <42a44aa2$1@newsgroups.borland.com> <42a4855c$1@newsgroups.borland.com> <42a588ed@newsgroups.borland.com> <42a5a49d@newsgroups.borland.com> <42a5bb59$1@newsgroups.borland.com> <42a5bdbf@newsgroups.borland.com> <42a5d4dd@newsgroups.borland.com> <42a62b57@newsgroups.borland.com> Subject: Re: Opening up Web Browsers inside my App Date: Tue, 7 Jun 2005 17:31:01 -0700 Lines: 24 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <42a63c20$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1118190624 68.69.17.41 (7 Jun 2005 17:30:24 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newshub.sdsu.edu!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed.hal-mli.net!feeder1.hal-mli.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail