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



The information in this article applies to:

  • Microsoft Visual C++, 32-bit Professional Edition 5.0
  • Microsoft Visual C++, 32-bit Professional Edition 6.0
  • Microsoft Visual C++ .NET (2002)
  • Microsoft Visual C++ .NET (2003)
  • Microsoft Visual C++ 2005 Express Edition

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.

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.

Modification Type:MajorLast Reviewed:1/7/2006
Keywords:kbtshoot kbprb kberrmsg kbActiveXScript kbinfo KB247784 kbAudDeveloper