Beruflich Dokumente
Kultur Dokumente
Java
Java app Java virtual machine Java machine x86 instruction set
Java app
Java virtual machine Java machine Sparc instruction set
OLE
OLE(activex) COM binary standard
COM object
OLE(control) COM
OLE(automation) COM
script
binary standard
binary standard
x86 instruction set
Object
Browser
Active x Container
Java applet
Activex control
Activex relationship
(container)
Active X technology
Client-Server Model
OLE architecture
Local Server
In-process Server
Marshaling
Transport Data across a process boundary ( function parameters and return Value )
Local Server
In-process Server
Local Server
OLE Library accomplish standard marshaling use Built-in proxies and stubs OLE Library accomplish Custom marshaling use custom proxies and custom stubs
GUID
CLSID -- a COM servers GUID is called its class ID(SERVER) IID -- is a GUID that distinguishes one particular interface from all others(COM) DISPID -- Dispath ID are numeric identifers that the OLE library use to identify your OLE Controls property and methods(Control).
Interface concept
COM Interface define a protocol but ----- in no way implement that protocol Class Icalculate { public : virtual double sum (double, double)=0; virtual double product (double, double)=0; };
Containment
Delegation
()
Aggregation ()
OLE Dcument
ActiveX Document is COM software components that present data and information to the user.
ActiveX Document allow user to view data in a variety of ways,perhaps as a graph, a spreadsheet, or text
Structured Storage
Store
Save
stream
COM Server
Stream
Compound Document
Nested object support object conversion optimized object storage object linking and embedding
Binding
Container
OLE Automation
Automation Server Expose its method (functionality) and properties ( characteristics )to other objects and application
IDispath
OLE control
Container
OLE control s have three sets of attributes that are expose to the outside world
Request
properties are named attributes or characteristics of an OLE control -----------Some example of properties are color ,font,number.
Property page
Method OLE Automation properties,method (argument) and (return types) (member function in c) -----------------------------------------------------------------(argument and return )data type 1. VARIANT 2.SAFEARRAY Method are function that client use 3. servers. BSTR the actions of OLE Vt iVal
to direct
VARENUM VARIANT Method are only accessible via OLE short automation(IDispath)
IVal long
Event
OLE control
Registry
Point to the controls Type Library <vendor>.<Server name>.<version name>of Type Library contains the descriptions object word.Document.6 class,interface,dispatch interface ( OLE automation) and type define
Conclusion
Control :ocx automation :exe and DLL control automation
Automation &automation