OLE / COM Helia / Martti Laiho Sources: MSDN Kraig Brockschmidt: Inside OLE Orfali-Harkey-Erwards: Client/Server Survival Guide.

Slides:



Advertisements
Similar presentations
Component Object Model
Advertisements

COM and.Net Components By Sam Nasr January 25,
Microsoft Word © Automation from Microsoft Access © by Ofer Shimrat for AUGSD MS Office Versions 2000 & 2002.
Fundamentals of COM Mary Kirtland Program Manager COM Team Microsoft Corporation.
COM vs. CORBA.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 9 Distributed Systems Architectures Slide 1 1 Chapter 9 Distributed Systems Architectures.
INF 123 SW ARCH, DIST SYS & INTEROP LECTURE 9 Prof. Crista Lopes.
Intro to COM What is it and how do I use it?. Objectives Teach the fundamentals of COM. Understand the reason for using it. Learn to make a simple in-process.
Seminarium on Component-based Software Engineering Jan Willem Klinkenberg CORBA.
OPC - OLE For Process Control Paul C. Shafer Bently Nevada Corp.
Introduction to Enterprise JavaBeans. Integrating Software Development Server-side Component Model Distributed Object Architecture –CORBA –DCOM –Java.
Distributed Object Computing Weilie Yi Dec 4, 2001.
Computer Science Lecture 24, page 1 CS677: Distributed OS Today: More Case Studies DCOM Jini.
Hadar Vorenshtein & Meital Levy Instructor yavgeni Rivkin.
CS 501: Software Engineering Fall 2000 Lecture 16 System Architecture III Distributed Objects.
AP 12/00 From Object-Oriented Programming to Component Software OO Languages: –Ada, Smalltalk, Java, C++ Class versus Object: –Express existence of objects.
1 COM/DCOM n Part of Project Presentation (Concept Outline)
Chapter 2 Database Environment. Agenda Three-Level ANSI-SPARC Architecture Database Languages Data Models Functions of DBMS Components of DBMS Teleprocessing.
Systems Architecture, Fourth Edition1 Internet and Distributed Application Services Chapter 13.
J2EE Kenneth M. Anderson CSCI Web Technologies October 3, 2001.
COM: Microsoft's Component Object Model Andrew C. Hopkins CSCI 397C-16 Object Oriented Database Design and Management Professor Renee Renner.
Visual Basic 6.0 Derived from BASIC Developed by Microsoft in 1998 An event driven programming language Associated with a development environment.
1998 PI System Users’ Conference PI-SDK Bill Vaughan and Harry Smith.
Intro to COM What is it and what can it do for me?
1 Modular Software/ Component Software 2 Modular Software Code developed in modules. Modules can then be linked together to produce finished product/program.
Beyond DHTML So far we have seen and used: CGI programs (using Perl ) and SSI on server side Java Script, VB Script, CSS and DOM on client side. For some.
CSIS0402 System Architecture Distributed Computing - Middleware Technology (2) K.P. Chow University of Hong Kong.
Obsydian OLE Automation Ranjit Sahota Chief Architect Obsydian Development Ranjit Sahota Chief Architect Obsydian Development.
COM vs. CORBA Computer Science at Azusa Pacific University September 19, 2015 Azusa Pacific University, Azusa, CA 91702, Tel: (800) Department.
Internet, intranet, and multimedia database processing l Database processing across local and wide area networks l Alternative architectures for distributing.
Fundamentals of Database Chapter 7 Database Technologies.
Chapter 1: Creating ActiveX Clients By Noppadon Kamolvilassatian Dept. of Computer Engineering, Prince of Songkla University Source: Mastering Visual Basic.
DCOM (Overview) by- Jeevan Varma Anga.
Microsoft’s Distributed Component Object Model (DCOM) Jim Ries Updated 10/5/1999 A semi-technical overview.
COM/DCOM Implementation Basics of: Object creation and access Object Reuse Interface referencing.
COM and DCOM CS 562 February 27, Motivation Data Analyzer Resource Monitor int compute (…) { } int compute (…) { } Data Analyzer int compute (…)
Introduction to COM and DCOM Organizational Communications and Technologies Prithvi N. Rao H. John Heinz III School of Public Policy and Management Carnegie.
CS 603 DCOM April 5, DCOM – What is it? Start with COM – Component Object Model –Language-independent object interface Add interprocess communication.
COMCOM omponent bject odel After this presentation, you will: Be Able To: Conceptual understanding of COM How it works, What it’s used for Decode Acronyms.
1 Distributed Systems Distributed Objects & Remote Invocation II (CORBA VS DCOM) Dr. Sunny Jeong. With Thanks to.
Information Management NTU Interprocess Communication and Middleware.
A COM implementation of the KSpace A ‘Knowledge Space prototype’ by Santhosh CST
Ni.com Understanding COM/ActiveX Jeff Paulter Staff Software Engineer Thurs Aug 17 10:15-11:30 a.m., 1:45-3:00 p.m. Ash (10A) Jeff Paulter Staff Software.
What is database?  Any Method for access info into Application from DataBase?  ODBC is standard for Accessing Data.  Problem with ODBC:  Information.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 14 Database Connectivity and Web Technologies.
CSC 480 Software Engineering Lecture 18 Nov 6, 2002.
CS 240, Prof. Sarwar Slide 1 CS 240: Software Project Fall 2003 Sections 1 & 2 Dr. Badrul M. Sarwar San Jose State University Lecture #23.
CS 501: Software Engineering Fall 1999 Lecture 12 System Architecture III Distributed Objects.
객체지향시스템 연구실 SNU, OOPSLA Lab1 Chap 10. Standards in OO 서울대학교 컴퓨터공학과 객체지향시스템 연구실 SNU OOPSLA LAB 김 형 주 교수 u Object-orientation by Khoshafian and Abnous.
COM / DCOM Xiaolan Lu Mingzhen Wang Dong Xie. Why COM / DCOM?  Challenges facing the software industry  Component software provides a solution  General.
Seminarium on Component-based Software Engineering Feraaz Imami LIACS – Leiden University Fall 2005 Component Object Model (COM)
1 Distributed Programming low level: sending data among distributed computations higher level: supporting invocations among distributed computations network.
7-1 Active Server and ADO Colorado Technical University IT420 Tim Peterson.
1 CS 501 Spring 2002 CS 501: Software Engineering Lecture 15 System Architecture III.
1 Distributed Systems Architectures Distributed object architectures Reference: ©Ian Sommerville 2000 Software Engineering, 6th edition.
Component Object Model(COM)
Microsoft’s Distributed Component Object Model (DCOM)
.Net A brief introduction to
Out-of-Process Components
Interpreter Style Examples
Remote Procedure Call (invocation) RPC
COM, DCOM and Software Components
Out-of-Process Components
A Scripting Server for Domain Automation Tasks
Active Template Library
Presented By Justas Raslanas
Lecture 7 ATL and Out-of-Process Components
Jim Fawcett CSE775 – Distributed Objects Spring 2007
CORBA and COM TIP Two practical techniques for object composition
Presentation transcript:

OLE / COM Helia / Martti Laiho Sources: MSDN Kraig Brockschmidt: Inside OLE Orfali-Harkey-Erwards: Client/Server Survival Guide

OLE History OLE –Compound documents –Object Linking and Embedding (OLE) OLE –Component Object Model (COM) –OLE Automation OLE Controls, OCX 1994 ActiveX 1996 DCOM 1996 COM Distributed interNet Application Architecture (DNA) 1997

Object type ClassName ========= properties events … methods … Interfaces Property Get - read property Property Let - write property Property Set - assigns child objref to property Initialize Declared using Interface Definition Language (IDL)

DCOM Server Class - properties - events - methods (functions) Class - properties - events - methods (functions) ClassFactory IClassFactory(2) - CreateInstance - LockServer - GetLicInfo - RequestLicKey - CreateInstanceLic IUnknown - QueryInterface - AddRef - Release Interface - Get/Let/Set methods - set of methods.EXE or.DLL

Creating an Object IClassFactory(2) - CreateInstance - LockServer - GetLicInfo - RequestLicKey - CreateInstanceLic DCOM Server Class - properties - events - methods (functions) Class - properties - events - methods (functions) ClassFactory IUnknown - QueryInterface - AddRef - Release Client Instance - properties - vtable of methods Instance - properties - vtable of methods

Collection and Member indexing collection =========== methods: Add Count Item Remove Object instance Object instance... Collection.item(1) Collection.item(2) Collection.item(count) Collection(0) or

Collection Methods colObj colObj.Add colObj.Clear colObj.Remove colObj.Count colObj.item(..)

Type Library & Instance Object Type (class factory) Object instance Object instance caller Object caller Object Dim objRef As New or Set objRef = CreateObject(" " ) objRef COM Object Reference is an interface pointer to an object

OLE Technologies OLE Controls In-Place Activation (Visual editing) In-Place Activation (Visual editing) Linking Property Pages Property Pages Events Property Change Notification Property Change Notification Embedding Drag and Drop Uniform Data Transfer Uniform Data Transfer Persistent Objects Structured Storage Connectable Objects Connectable Objects Type Information Component Object Model: Objects and Interfaces OLE Automation Naming and Binding Naming and Binding OLE Documents Kraig Brockschmidt: Inside OLE, 1995

Object Linking and Embedding Document1Document2 Linked object Document1Document2 emb. obj Source object emb. obj Embedding a copy Linking the object

Automation Object Hierarchy Application Documents collection Document Object Rich properties collection Objects collection Rich property Enumerator - Open - Save - Close Kraig Brockschmidt: Inside OLE, 1995 (container) i.e. Font Hierarchy of...

Object Path Child Type properties methods Child Object Child Object Parent Type Parent Object Parent Object Parent.Child.Method [arguments]

DCOM Client Object proxy Object proxy Server Stub Actual object Actual object RPC

COM+ Load balancing In-memory databases Object pooling Queued components Event model Administration extensions Evolution of Component Services Microsoft Transaction Server Transaction services Resource pooling Just-in-time activation Role-based security Administration Distributed COM Remoting architecture Distributed component services COM Interface-based programming Basic component facilities Inside COM+