🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

BHO question for Remy

#12773
From: Martin C
Date: Mon, 17 Nov 2003 17:25
33 lines
2108 bytes
Hi,

I've builded my bho to kill un-wanted popup windows, and it works fine on my
windows XP machine with IE 6, when I tried to use on windows 98 and IE 5.5,
IE always crash whenever a new window is about to popup...!, so please find
below the code I use for the DISPID_NEWWINDOW2 case,  if I removed this case
totally from code everything works more than fine, else it IE always crash
on windows 98.

case DISPID_NEWWINDOW2:
{
                        if (pDispParams->cArgs == 0)
                           break;

                        //m_bUserClickedLink is a variable to compare if
                        //the user clicked on a link to generate the popup
window
                        //or if it just popup by itself
                        if (!m_bUserClickedLink)
                        {    pDispParams->rgvarg[0].pvarVal->vt = VT_BOOL;
                              pDispParams->rgvarg[0].pvarVal->boolVal =
VARIANT_TRUE;
                        }
                        else { }

                        m_bUserClickedLink = FALSE;    // Reset

                        break;
}

can someone tell me please what exactly I am doing wrong here !!!

Thanks and BR
Technical Details
Message-ID: <3fb9047b@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,4e38e043efeeeb27,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-11-17 09:33:42 PST
From: "Martin C" <martinc@aol.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: BHO question for Remy
Date: Mon, 17 Nov 2003 09:25:13 -0800
Lines: 35
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: <3fb9047b@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1069089915 81.10.4.238 (17 Nov 2003 09:25:15 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail