The information in this article applies to:
SYMPTOMSWhen navigating to a page in an application that hosts the Microsoft WebBrowser control, you will get the following scripting error message: This error occurs specifically at a location in script code where the VBScript method MsgBox is called. It also occurs if the WebBrowser control is being hosted using Visual C++ and the Microsoft Foundation Classes' (MFC) default control containment support. CAUSE
This error occurs because the IOleInPlaceFrame implementation of the
control container is not returning S_OK from the EnableModeless method.
RESOLUTION
Modify the control container to return S_OK from the
IOleInPlaceFrame::EnableModeless method. EnableModeless should prepare the
top-level frame for the display or removal of a modal dialog box based on
the supplied Boolean parameter. Refer to the documentation for
IOleInPlaceFrame::EnableModeless for more information on how to implement
this method.
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug has been corrected in Microsoft Internet Explorer 4.0. MORE INFORMATIONMFC containers can use a call to CWinApp::EnableModeless to fully implement this function and return S_OK. Here is a code sample:
REFERENCESFor additional information on modifying MFC control containment support to override this method, please see the following article in the Microsoft Knowledge Base: Q141277 How to Override an Interface in an MFC Application © Microsoft Corporation 1999, All Rights Reserved. Additional query words:
Keywords : kberrmsg AXSDKScripting |
Last Reviewed: November 17, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |