Download presentation
Presentation is loading. Please wait.
Published byAlexis Cobb Modified over 8 years ago
1
Microsoft Windows Script Interfaces-Introduction 主講人:虞台文
2
Content Windows Script Basic Architecture IActiveScript & IActiveScriptParse IActiveScriptSite & IActiveScriptSiteWindow Example – Implements an Active Script Host Using MFC
3
Microsoft Windows Script Interfaces-Introduction Windows Script Basic Architecture
4
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
5
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
6
Interaction btw. Host and Engine
7
Microsoft Windows Script Interfaces-Introduction IActiveScript & IActiveScriptParse
8
IActiveScript
9
IActiveScriptParse
10
Microsoft Windows Script Interfaces-Introduction IActiveScriptSite & IActiveScriptSiteWindow
11
IActiveScriptSite
12
IActiveScriptSiteWindow
13
Microsoft Windows Script Interfaces-Introduction Example Implements an Active Script Host Using MFC
14
An Active Script Host Using MFC
15
Exercise 1. Add some scriptable controls, e.g., listbox, static, to the demo application, and test them using VBScript.
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.