Article View: borland.public.cppbuilder.nativeapi
Article #13230Re: BHO question
From: Martin C
Date: Tue, 21 Oct 2003 02:04
Date: Tue, 21 Oct 2003 02:04
37 lines
2863 bytes
2863 bytes
Hi Remy, No I already noticed that I was not initializing (i) before using it, and I already initialized it in my code (int i =0;) before I post my message to you, and the same problem still exist... so do you have any other ideas on why this problem happens... Looking forward for your reply BR "Remy Lebeau (TeamB)" <gambit47.no.spam@no.spam.yahoo.com> wrote in message news:3f94933e$1@newsgroups.borland.com... > > "Martin C" <martinc@aol.com> wrote in message > news:3f9487b0@newsgroups.borland.com... > > > BTW there is really a strange issue happening with IE and my bho, > > if I selected any link (by mouse right click) and pressed 'open in new > > window', IE doesn't respond at all, as if I never pressed 'open in > > new window' command. do you happen to have any idea why this > > might be happening... > > Based on your preview code, my guess would be that your test for (i != 1) is > causing Quit/Stop() to be called for every request for a new window. You > did not initialize 'i' before using it, and you did not test get_ToolBar() > to make sure it succeeded before using the returned value. Since 'i' is > uninitialized, it will contain a random value from memory, which will > probably rarely ever be set to 1. If get_ToolBar() fails, 'i' will most > likely remain unchanged, and thus your test for (i != 1) will always > succeed. > > > Gambit > >
Technical Details
Message-ID:
<3f949421$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3f84957c@newsgroups.borland.com> <3f84a0b8@newsgroups.borland.com> <3f88b9db@newsgroups.borland.com> <3f88be72$1@newsgroups.borland.com> <3f897b9a@newsgroups.borland.com> <3f89c56f$1@newsgroups.borland.com> <3f8af683@newsgroups.borland.com> <3f8af95a$3@newsgroups.borland.com> <3f8affad@newsgroups.borland.com> <3f8b009f$3@newsgroups.borland.com> <3f8ed9f0$1@newsgroups.borland.com> <3f8edeb3$1@newsgroups.borland.com> <3f93f0e3@newsgroups.borland.com> <3f941ba4$1@newsgroups.borland.com> <3f9472ab@newsgroups.borland.com> <3f94782e$1@newsgroups.borland.com> <3f9487b0@newsgroups.borland.com> <3f94933e$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,15b7dd6889830f4f X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-10-20 19:09:19 PST From: "Martin C" <martinc@aol.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f84957c@newsgroups.borland.com> <3f84a0b8@newsgroups.borland.com> <3f88b9db@newsgroups.borland.com> <3f88be72$1@newsgroups.borland.com> <3f897b9a@newsgroups.borland.com> <3f89c56f$1@newsgroups.borland.com> <3f8af683@newsgroups.borland.com> <3f8af95a$3@newsgroups.borland.com> <3f8affad@newsgroups.borland.com> <3f8b009f$3@newsgroups.borland.com> <3f8ed9f0$1@newsgroups.borland.com> <3f8edeb3$1@newsgroups.borland.com> <3f93f0e3@newsgroups.borland.com> <3f941ba4$1@newsgroups.borland.com> <3f9472ab@newsgroups.borland.com> <3f94782e$1@newsgroups.borland.com> <3f9487b0@newsgroups.borland.com> <3f94933e$1@newsgroups.borland.com> Subject: Re: BHO question Date: Mon, 20 Oct 2003 18:04:17 -0800 Lines: 39 Organization: V Safe X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 81.10.4.238 Message-ID: <3f949421$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1066701857 81.10.4.238 (20 Oct 2003 19:04:17 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail