Automation and IDispatch

Slides:



Advertisements
Similar presentations
Week 8 Arrays Part 2 String & Pointer
Advertisements

VBA Modules, Functions, Variables, and Constants
The number of calories burned per hour by cycling, jogging and swimming are 200, 475 and 275 respectively. A person loses 1pound of weight for each 3500.
Arrays Array of Controls: several controls, of the same type (Class: a prototype for an object indicating the properties and methods), that have the same.
CSI 101 Elements of Computing Spring 2009 Lecture #6: Data Types and Variables in Visual Basic Wednesday, Februrary 11th, 2009.
Active Server Pages Points of Interest Chapters 1-4.
From C++ to C#. Web programming The course is on web programming using ASP.Net and C# The course is on web programming using ASP.Net and C# ASP.Net is.
Context\Context.wb Library Functions.  Data Driven Programming.  Enhance Existing programs.  Quickly Develop new Programs.  Powerful Set of Library.
Using Data Active Server Pages Objectives In this chapter, you will: Learn about variables and constants Explore application and session variables Learn.
Obsydian OLE Automation Ranjit Sahota Chief Architect Obsydian Development Ranjit Sahota Chief Architect Obsydian Development.
Tutorial 11 Using and Writing Visual Basic for Applications Code
[0][1][2][3][4][5][6][7][8][9] Bing David Ina Abhinav Erik Hyun Jim Fiona Gheeta Chelsea I can easily loop through all the student records by using a.
ASP.NET Programming with C# and SQL Server First Edition Chapter 3 Using Functions, Methods, and Control Structures.
INTRODUCTION TO JAVASCRIPT AND DOM Internet Engineering Spring 2012.
1 Session 3: Flow Control & Functions iNET Academy Open Source Web Programming.
CSE 131 Computer Science 1 Module 1: (basics of Java)
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.
PHP - Basic Language Constructs CSCI 297 Scripting Languages - Day Two.
Introduction to CS520/CS596_026 Lecture Two Gordon Tian Fall 2015.
Type Conversions Implicit Conversion Explicit Conversion.
7 Chapter Seven Client-side Scripts. 7 Chapter Objectives Create HTML forms Learn about client-side scripting languages Create a client-side script using.
BIS Database Systems School of Management, Business Information Systems, Assumption University A.Thanop Somprasong Chapter # 8 Advanced SQL.
1 Generics Chapter 21 Liang, Introduction to Java Programming.
Session 7 Methods Strings Constructors this Inheritance.
1 of 16 Microsoft ® Business Solutions–Navision ® Development I – C/SIDE Introduction.
Chapter 10: Classes and Data Abstraction. Objectives In this chapter, you will: Learn about classes Learn about private, protected, and public members.
Web Services from 10,000 feet Part I Tom Perkins NTPCUG CertSIG XML Web Services.
Languages.ppt Programming Language Usage Stand-A-Lone Runs on a Mainframe, Server, or PC and does not interface outside of the immediate domain Program.
Chapter 10: Classes and Data Abstraction. Classes Object-oriented design (OOD): a problem solving methodology Objects: components of a solution Class:
7-1 Active Server and ADO Colorado Technical University IT420 Tim Peterson.
Clearly Visual Basic: Programming with Visual Basic 2008 Chapter 11 So Many Paths … So Little Time.
Chapter 10 So Many Paths … So Little Time (Multiple-Alternative Selection Structures) Clearly Visual Basic: Programming with Visual Basic nd Edition.
Visual Basic 6 Programming Decide how many variables you need by looking at this form. There is one textbox for input and there are 3 labels for output,
Jim Fawcett CSE687 – Object Oriented Design Spring 2001
Web Database Programming Using PHP
Introduction to Database Processing with ADO.NET
Asp.Net MVC Conventions
VB Script V B S.
Jim Fawcett CSE775 – Distributed Objects Spring 2017
Jim Fawcett CSE687 – Object Oriented Design Spring 2016
“Under the hood”: Angry Birds Maze
Strings, StringBuilder, and Character
Web Database Programming Using PHP
Play Framework: Introduction
Jim Fawcett CSE791 – Distributed Objects Spring 2001
Native / Managed Interop
Database Systems: Design, Implementation, and Management Tenth Edition
Interface Definition Language
Design & Technology Grade 7 Python
Parameter Sniffing in SQL Server Stored Procedures
C# COM Interoperability Late Binding
.NET and .NET Core 5.2 Type Operations Pan Wuming 2016.
Writing Geoprocessing Scripts With ArcGIS
Writing Geoprocessing Scripts With ArcGIS
Object Oriented Programming in java
Array and Method.
CS285 Introduction - Visual Basic
Convert from Variable Character to Float
CIS16 Application Development and Programming using Visual Basic.net
Notes from Week 5 CSE 115 Spring 2006 February 13, 15 & 17, 2006.
5. 3 Coding with Denotations
The <script> Tag
Unit-1 Introduction to Java
Distributive Property
Active Template Library
C# COM Interoperability
Jim Fawcett CSE687 – Object Oriented Design Spring 2014
Asp.Net MVC Conventions
Jim Fawcett CSE687 – Object Oriented Design Spring 2015
Creating and Using Classes
Presentation transcript:

Automation and IDispatch Jim Fawcett CSE775 – Distributed Objects Spring 2004

Automation An automation server is a COM object that exposes methods and properties through the IDispatch interface. IDispatch is a “generic” interface Used by scripting languages that have no mechanism for compiling information about an interface. Its invoke() method is passed an index into a table of methods. It uses a DISSPARMS structure to pass parameter values to the interface. It uses a VARIANT tagged union to return method results.

The Variant Data Type A Variant variable is capable of storing all system-defined types of data. You don't have to convert between these types of data if you assign them to a Variant variable; Visual Basic 6.0 automatically performs any necessary conversion. For example: Dim SomeValue ' Variant by default. SomeValue = "17" ' SomeValue contains "17“ (a two-character string). SomeValue = SomeValue - 15 ' SomeValue now contains the numeric value 2. SomeValue = "U" & SomeValue ' SomeValue now contains ' "U2" (two- character string).