Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
inet
active_desktop
active_scrptng
asp.components
asp.db
asp.general
comctl32
comp.packaging
components.dev
dbweb
dhtml_editing
docobjects
html_authoring
html_objmodel
iis
iis.ftp
iis.security
iis.smtp_nntp
indexserver
misc
mshtml_hosting
scripting.jscript
scripting.vbscript
sdk_setup
shell_objmodel
urlmonikers
webbrowser_ctl
wininet
  
 
date: Sat, 15 Mar 2008 09:59:18 -0500,    group: microsoft.public.inetsdk.programming.webbrowser_ctl        back       


BHO Script call fails on IE7 Vista (0x80020006)   
Hello,

I have a BHO that I created a few months ago that recently stopped working 
on Vista. This BHO interfaces with a Web application that has certain 
JavaScript functions that we call to pass client application data back and 
forth. This works on XP and windows 2000 for both IE 7.0 and IE 6.0. But the 
script call fails on Vista with protected mode on or off - doesn't matter. I 
suspect Vista had a patch installed that is causing the issue - but I am not 
sure. All of a sudden I get 0x80020006 (Unknown name) returned from my 
Dispatch method (GetIDsOfNames) call below. The code is at the end of the 
post.

I am not sure how to fix this or what to do. Does anybody know what is going 
on?

Any help would be greatly appreciated.

Thanks,
Tom

CComPtr<IDispatch> pScriptDisp;
HRESULT hr = spDoc->get_Script(&pScriptDisp);
if(pScriptDisp)
{
DISPID dispid = NULL;

 // Following call returns 0x80020006 on Vista only (user control on and 
off)
 hr = pScriptDisp->GetIDsOfNames(IID_NULL,&bstrFunctionName,1,
    LOCALE_SYSTEM_DEFAULT,&dispid);
date: Sat, 15 Mar 2008 09:59:18 -0500   author:   Tom

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us