IActiveScriptSite::OnEnterScriptIActiveScriptSite::OnEnterScript*
*Contents  *Index  *Topic Contents
*Previous Topic: IActiveScriptSite::GetLCID
*Next Topic: IActiveScriptSite::OnLeaveScript

IActiveScriptSite::OnEnterScript

HRESULT OnEnterScript(void);

Informs the host that the scripting engine has begun executing the script code.

The scripting engine must call this method on every entry or reentry into the scripting engine. For example, if the script calls an object that then fires an event handled by the scripting engine, the scripting engine must call IActiveScriptSite::OnEnterScript before executing the event, and must call the IActiveScriptSite::OnLeaveScript method after executing the event but before returning to the object that fired the event. Calls to this method can be nested. Every call to this method requires a corresponding call to IActiveScriptSite::OnLeaveScript.


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.