The information in this article applies to:
SUMMARY
Like all programs, scripts running in an ActiveX Script Host can throw two kinds of errors, compile-time and run-time. In earlier implementations, the ActiveX Scripting Engines provided by Microsoft (VBScript and JScript), made no distinction between the two types of errors. Both were handled in IActiveScriptSite::OnScriptError(). With more recent versions of the script engines, a distinction was made between run-time and compile-time errors. Compile-time errors, such as syntax errors, are still reported to the ActiveX Script Host using the IActiveScriptSite::OnScriptError() method. However, run-time errors, such as passing invalid arguments, are not directly reported to OnScriptError(). Instead, they are reported to a different method, IActiveScriptSiteDebug::OnScriptErrorDebug(). MORE INFORMATION
This article assumes that you've already written an ActiveX Script Host. For more information on doing this, please see the articles noted in the REFERENCES section of this article.
Alternately, a Script Host may choose to have a more complete implementation of the IActiveScriptSiteDebug interface. For documentation on the IActiveScriptSiteDebug interface, and its implementation, please see: http://msdn.microsoft.com/scripting and select Hosting Information/ Documentation/ Windows Script Debugging. The section on Smart Host Helpers describes how to implement the IActiveScriptSiteDebug interface. REFERENCES
For additional information about building ActiveX Script Hosts, please see the following articles in the Microsoft Knowledge Base: Q223139 HOWTO: Add Support for Hosting VBScript to an ATL Application Q183698 SAMPLE: AXSH.exe Demonstrates Implementing ActiveX Script Hosts Q168214 SAMPLE: MFCAxs.exe Implements an ActiveX Script Host Using MFC Q223389 FILE: Scriptng.exe Contains the Files Necessary for Implementing ActiveX Script Hosts and Engines Additional query words:
Keywords : kbAXScript kbVC kbVC500 kbVC600 kbGrpDSO |
Last Reviewed: June 8, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |