160 likes | 406 Views
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.
E N D
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 Host Scripting Engine IActiveScriptSite::GetItemInfo IActiveScript::SetScriptSite IDispatch IDispatch IDispatch IDispatch (events) IDispatch (events) IDispatch (events) IActiveScript IActiveScriptSite IActiveScriptParse IActiveScriptSiteWindow IPersistXxx IActiveScript::GetScriptDispatch IDispatch Active Scripting Architecture Site Object (Host->Engine Thunking) VBScript or JavaScript Application-Specific Automation Interfaces
Scripting Host Scripting Engine IActiveScriptSite::GetItemInfo IActiveScript::SetScriptSite IDispatch IDispatch IDispatch IDispatch (events) IDispatch (events) IDispatch (events) IActiveScript IActiveScriptSite IActiveScriptParse IActiveScriptSiteWindow IPersistXxx IActiveScript::GetScriptDispatch Site Object (Host->Engine Thunking) IDispatch VBScript or JavaScript Application-Specific Automation Interfaces Active Scripting Architecture
Microsoft Windows Script Interfaces-Introduction IActiveScript & IActiveScriptParse
Microsoft Windows Script Interfaces-Introduction IActiveScriptSite & IActiveScriptSiteWindow
Microsoft Windows Script Interfaces-Introduction Example Implements an Active Script Host Using MFC
Exercise • Add some scriptable controls, e.g., listbox, static, to the demo application, and test them using VBScript.