Title: ActiveX Technologies
1ActiveX Technologies
2Outline
- History and Overview
- Families of ActiveX Technologies
- ActiveX Control
- Examples
- Useful Tools
- References
3History and Overview
- OLE 1.0 (Object Linking and Embedding 1.0)
- compound document
- OLE 2.0
- compound document and more ..
- COM (Component Object Model)
- a component software architecture
- allows applications to be built from components
supplied by different vendors
4History and Overview (Cont.)
- COM (Cont.)
- OLE
- software services which are developed based on
COM
5History and Overview (Cont.)
- Automation/OLE Automation
- Let application programmable
- Macro
- Automation
6History and Overview (Cont.)
- OLE controls/OLE documents/OLE scripting
- ActiveX controls/ActiveX documents/ActiveX
scripting - OLE becomes OLE again
7Families of ActiveX Technologies
- ActiveX Technologies
- create more interactivities between objects and
client programs - ActiveX Families
- ActiveX controls
- ActiveX documents
- ActiveX scripting
8Families of ActiveX Technologies (Cont.)
- ActiveX controls
- provide two way communication mechanism between
reusable objects and client programs - control container (client program) IE/VB/VC
ActiveX control test container - control objects (reusable objects) ActiveX
Controls
9ActiveX Control
- VBX
- reusable objects
- for visual basic only
- OLE controls
- reusable objects
- too complicated
- ActiveX controls
- based on IUnknown and self-register
10ActiveX Control (Cont.)
11ActiveX Control (Cont.)
O.S. 1. Check object ID 2. Get location Info
lt 1. Invoking (CoCreateInstance) gt 2. Show
Window lt 3. Set Properties User Input gt IE lt 4.
Method Invoking Popup MsgBox gt 5. Event Link to
another URL
12ActiveX Control (Cont.)
13ActiveX Control (Cont.)
14ActiveX Control (Cont.)
15ActiveX Control (Cont.)
16ActiveX Control (Cont.)
- Examine and modify properties
17Families of ActiveX Technologies (Cont.)
- ActiveX Documents
- Not OLE documents
- Enable that client programs full utilize objects
functionality - Components
- ActiveX documents container IE/...
- ActiveX documents server Excel/Word/
18(No Transcript)
19(No Transcript)
20Families of ActiveX Technologies (Cont.)
21Families of ActiveX Technologies (Cont.)
- ActiveX Scripting
- Enable communication with scripting engines and
hosts - scripting engines VB/JAVA scripting engines
- host IE/...
22Families of ActiveX Technologies (Cont.)
- Example
- ltHTMLgt
- ltTITLEgtActiveX Scripting Examplelt/TITLEgt
- ltBODYgt
- ltH1gtVB Scriptlt/H1gt
- ltSCRIPT LANGUAGEVBScriptgt
- document.bgColor"White"
- document.write"ltHRgt"
- document.write"Hello world !!! This is
VBScript." - document.write"ltHRgt"
- lt/SCRIPTgt
- ltH1gtJava Scriptlt/H1gt
- ltSCRIPT LANGUAGEJavaScriptgt
- document.writeln("ltHRgt")
- document.writeln("Hello world !!! This is
JavaScript.") - document.writeln("ltHRgt")
- lt/SCRIPTgt
- lt/BODYgt
23Families of ActiveX Technologies (Cont.)
24Useful Tools
- ActiveX controls
- Visual Basic ActiveX Control, ActiveX Documents
- Visual C MFC ActiveX ControlWizard, ATL COM
AppWizard - Visual J
- Test your controls
- IE
- ActiveX Control Test Container
25Useful Tools (Cont.)
- Explore your controls
- Regedit
- OLE/COM Object Viewer
- Design your homepage with ActiveX controls
- FrontPage
- ActiveX Control Pad
- ...
26Useful Tools (Cont.)
- Microsoft ActiveX Control Pad
- www.microsoft.com/workshop/author/cpad/download.ht
m - Microsoft ActiveX Development Kit
- www.microsoft.com/intdev/sdk/docs/scriptm/
27References
- MSDN, Microsoft Corp.
- Microsoft System Journal, Microsoft Press.
- Understanding ActiveX and OLE, Microsoft Press.
- Adam Denning, OLE Controls InSide OUT, Microsoft
Press - AL. Williams, Developing ActiveX Web Controls,
Thomson Pub. - Sing Li and Panos Economopouls, Visual C 5
ActiveX COM Control Programming - MS-VB Help
- MS-VC Help