Clear IE toolband cache?

  • Thread starter Thread starter Jaap de Bergen
  • Start date Start date
J

Jaap de Bergen

Hello,

I'm developing a toolband for internet explorer by implementing
IUnknown, IOleWindow, IDockingWindow, IDeskBand, IInputObject,
IObjectWithSite and IPersistStream like described on:
<http://msdn.microsoft.com/library/d...rm/Shell/programmersguide/shell_adv/bands.asp>

This is working good, but when i register my updated dll with
regsrv32:
regsvr32.exe /c "$(OUTDIR)"\BandObjs.dll
the new version of the toolband doesn't appear in internet explorer.
Registrering succeeds.

I suspect that internet explorer caches the toolband's.

The only way internet explorer will use my updated toolband is when i
restart my computer. But this situation is not optimal, because now
everytime i add code and recompile the toolband dll i need to restart
my computer.

Is there a way to notify Internet explorer that he should clear the
toolband cache and re-read the registry so that the updated toolbar is
used?

Best regards,
Jaap
 
Jaap,

You may try this question in IE Programming newsgroup. Meanwhile, see:

HOWTO: Programmatically Active a Band Object:
http://support.microsoft.com/?kbid=255920
(BHOs are dynamic, you don't need to restart the PC)

-or-

Try killing explorer.exe process and restarting it, which should rebuild the cache.

--
Ramesh - Microsoft MVP
Windows XP Shell
http://www.mvps.org/sramesh2k
---------------------------------------
What You Should Know About the Sasser Worm and It Variants:
http://www.microsoft.com/security/incident/sasser.asp
---------------------------------------


Hello,

I'm developing a toolband for internet explorer by implementing
IUnknown, IOleWindow, IDockingWindow, IDeskBand, IInputObject,
IObjectWithSite and IPersistStream like described on:
<http://msdn.microsoft.com/library/d...rm/Shell/programmersguide/shell_adv/bands.asp>

This is working good, but when i register my updated dll with
regsrv32:
regsvr32.exe /c "$(OUTDIR)"\BandObjs.dll
the new version of the toolband doesn't appear in internet explorer.
Registrering succeeds.

I suspect that internet explorer caches the toolband's.

The only way internet explorer will use my updated toolband is when i
restart my computer. But this situation is not optimal, because now
everytime i add code and recompile the toolband dll i need to restart
my computer.

Is there a way to notify Internet explorer that he should clear the
toolband cache and re-read the registry so that the updated toolbar is
used?

Best regards,
Jaap
 
Hello Ramesh,

After i read your reply i tryed and deployed the toolband on another
computer which has a clean install of windows. And on this computer it
worked perfect, i compile, deploy and register on the other computer
and everytime i restart Internet Explorer my updated toolband
appears.

I don't know why it isn't functioning on my own computer, i guess
something is messed up (it's already a 2 year old windows 2000 system
with alot of software installed). But i'm happy that it is working on
my other computer.

Jaap
 
regsvr32.exe /c "$(OUTDIR)"\BandObjs.dll


Is this (/c) an undocumented switch? What does it do?

It sounds as if it is supposed to be a variation of /s
perhaps putting the status into the console window
instead of giving it only in a prompt.

<title>KB288373 - Regsvr32.exe "/c" Switch Is Not Available in Windows 2000</title>


Also I think that there is a potential syntax error by the placement of
the final doublequote. E.g. perhaps this syntax

regsvr32.exe /c "$(OUTDIR)\BandObjs.dll"

would help avoid problems with folder names with spaces in them, especially on OS which need to specify fully-qualified paths as
described
here:

<title>KB259012 - PRB: Regsvr32 May Register COM In-Process Server from Different Directory</title>


---


Jaap,

You may try this question in IE Programming newsgroup. Meanwhile, see:

HOWTO: Programmatically Active a Band Object:
http://support.microsoft.com/?kbid=255920
(BHOs are dynamic, you don't need to restart the PC)

-or-

Try killing explorer.exe process and restarting it, which should rebuild the cache.

--
Ramesh - Microsoft MVP
Windows XP Shell
http://www.mvps.org/sramesh2k
---------------------------------------
What You Should Know About the Sasser Worm and It Variants:
http://www.microsoft.com/security/incident/sasser.asp
---------------------------------------


Hello,

I'm developing a toolband for internet explorer by implementing
IUnknown, IOleWindow, IDockingWindow, IDeskBand, IInputObject,
IObjectWithSite and IPersistStream like described on:
<http://msdn.microsoft.com/library/d...rm/Shell/programmersguide/shell_adv/bands.asp>

This is working good, but when i register my updated dll with
regsrv32:
regsvr32.exe /c "$(OUTDIR)"\BandObjs.dll
the new version of the toolband doesn't appear in internet explorer.
Registrering succeeds.

I suspect that internet explorer caches the toolband's.

The only way internet explorer will use my updated toolband is when i
restart my computer. But this situation is not optimal, because now
everytime i add code and recompile the toolband dll i need to restart
my computer.

Is there a way to notify Internet explorer that he should clear the
toolband cache and re-read the registry so that the updated toolbar is
used?

Best regards,
Jaap
 
Back
Top