🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #13236

Re: BHO question

#13236
From: Martin C
Date: Tue, 21 Oct 2003 16:59
48 lines
3138 bytes
Hi Remy,

Remember in the code you initially posted to me there was this part in it:

            case DISPID_NEWWINDOW2: //New IE Window Has been Initialized

                        //void NewWindow2(IDispatch **&ppDisp, VARIANT_BOOL
*&Cancel)
                        if( !pDispParams )
                                return E_INVALIDARG;

                        // only allow a new window if SHIFT or CONTROL are
held down
                        if( ((GetKeyState(VK_SHIFT) & 0x8000) == 0) &&
((GetKeyState(VK_CONTROL) & 0x8000) == 0) )
                                *(pDispParams->rgvarg[0].pboolVal) =
VARIANT_TRUE;
            break;

This part when I removed it the problem of IE pop up menu command (Open in a
new window) was eliminated and now it run fine, so the only logic issue here
that the code above is the one causing this problem, so can you tell me
please what I am missing here that causes such problem

Looking forward for your reply

Thanks in advance and BR.

"Remy Lebeau (TeamB)" <gambit47.no.spam@no.spam.yahoo.com> wrote in message
news:3f9496e6$1@newsgroups.borland.com...
>
> "Martin C" <martinc@aol.com> wrote in message
> news:3f949421$1@newsgroups.borland.com...
>
> > No I already noticed that I was not initializing (i) before using it,
> > and I already initialized it in my code (int i =0;)
>
> Not in the code you posted earlier.
>
> > the same problem still exist..
>
> Then I have no other ideas, sorry.  You'll just have to debug your code to
> find out what exactly it is doing.
>
>
> Gambit
>
>
Technical Details
Message-ID: <3f9565e3@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
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> <3f949421$1@newsgroups.borland.com> <3f9496e6$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-21 10:14:58 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> <3f949421$1@newsgroups.borland.com> <3f9496e6$1@newsgroups.borland.com>
Subject: Re: BHO question
Date: Tue, 21 Oct 2003 08:59:12 -0800
Lines: 50
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: 62.135.27.176
Message-ID: <3f9565e3@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1066755555 62.135.27.176 (21 Oct 2003 09:59:15 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail