An undocumented error code 0x80020101 occurs when you use the ActiveX Scripting interface in Visual C++

Article translations Article translations
Article ID: 247784 - View products that this article applies to.
This article was previously published under Q247784
Note Microsoft Visual C++ .NET 2002 and Microsoft Visual C++ .NET 2003 support both the managed code model that is provided by the Microsoft .NET Framework and the unmanaged native Microsoft Windows code model. The information in this article applies only to unmanaged Visual C++ code. Microsoft Visual C++ 2005 supported both the managed code model that is provided by the Microsoft .NET Framework and the unmanaged native Microsoft Windows code model.
Expand all | Collapse all

SUMMARY

When you use the ActiveX Scripting interface to host an ActiveX Script Engine, the following methods may return an undocumented error code 0x80020101:
  • IActiveScriptParse::ParseScriptText
  • IActiveScript::InterruptScriptThread
The HRESULT 0x80020101 translates to SCRIPT_E_REPORTED. This error can be observed when a scripting component fails under MTS.

MORE INFORMATION

When an ActiveX Script Engine, such as VBScript or JScript, encounters an error it attempts to report the error to its script host by calling one of the following methods:
  • IActiveScriptSite::OnScriptError
  • IActiveScriptSiteDebug::OnScriptErrorDebug
After one of these methods is called, the script engine must also return an HRESULT from the method that was called when the error occurred. To warn the script host that the error has already been reported, and to ensure that a single error does not result in more than one notification, the script engine returns SCRIPT_E_REPORTED. This indicates that the error has already been handled and the host need not take further action.

Properties

Article ID: 247784 - Last Review: January 7, 2006 - Revision: 5.0
APPLIES TO
  • Microsoft Visual C++ 5.0 Professional Edition
  • Microsoft Visual C++ 6.0 Professional Edition
  • Microsoft Visual C++ .NET 2002 Standard Edition
  • Microsoft Visual C++ .NET 2003 Standard Edition
  • Microsoft Visual C++ 2005 Express Edition
Keywords: 
kberrmsg kbinfo kbtshoot kbactivexscript kbprb KB247784

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com