1 / 15

Microsoft Windows Script Interfaces-Introduction

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.

arvin
Download Presentation

Microsoft Windows Script Interfaces-Introduction

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  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 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

  5. 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

  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 • Add some scriptable controls, e.g., listbox, static, to the demo application, and test them using VBScript.

More Related