Microsoft Windows Script Interfaces-Introduction 主講人:虞台文
Content Windows Script Basic Architecture IActiveScript & IActiveScriptParse IActiveScriptSite & IActiveScriptSiteWindow Example – Implements an Active Script Host Using MFC
Microsoft Windows Script Interfaces-Introduction Windows Script Basic Architecture
Scripting HostScripting Engine Active Scripting Architecture IActiveScriptSite IActiveScriptSiteWindow IDispatch (events) IDispatch (events) IDispatch (events) Application-Specific Automation Interfaces VBScript or JavaScript Site Object (Host->Engine Thunking) IActiveScript IActiveScriptParse IPersistXxx IDispatch IActiveScript::GetScriptDispatch IActiveScript::SetScriptSite IActiveScriptSite::GetItemInfo
Scripting HostScripting Engine IActiveScriptSite IActiveScriptSiteWindow IDispatch (events) IDispatch (events) IDispatch (events) Application-Specific Automation Interfaces VBScript or JavaScript Site Object (Host->Engine Thunking) IActiveScript IActiveScriptParse IPersistXxx IDispatch IActiveScript::GetScriptDispatch IActiveScript::SetScriptSite IActiveScriptSite::GetItemInfo Active Scripting Architecture
Interaction btw. Host and Engine
Microsoft Windows Script Interfaces-Introduction IActiveScript & IActiveScriptParse
IActiveScript
IActiveScriptParse
Microsoft Windows Script Interfaces-Introduction IActiveScriptSite & IActiveScriptSiteWindow
IActiveScriptSite
IActiveScriptSiteWindow
Microsoft Windows Script Interfaces-Introduction Example Implements an Active Script Host Using MFC
An Active Script Host Using MFC
Exercise 1. Add some scriptable controls, e.g., listbox, static, to the demo application, and test them using VBScript.