DATA EXCHANGE.

Slides:



Advertisements
Similar presentations
Lectures on File Management
Advertisements

Developing a Web Site: Links Using a link is a quicker way to access information at the bottom of a Web page than scrolling down A user can select a link.
28.2 Functionality Application Software Provides Applications supply the high-level services that user access, and determine how users perceive the capabilities.
XP Browser and Basics1. XP Browser and Basics2 Learn about Web browser software and Web pages The Web is a collection of files that reside.
CSCI 4550/8556 Computer Networks Comer, Chapter 3: Network Programming and Applications.
Inter Process Communication:  It is an essential aspect of process management. By allowing processes to communicate with each other: 1.We can synchronize.
Operating Systems.
Pipelining By Toan Nguyen.
A Web Services Based Streaming Gateway for Heterogeneous A/V Collaboration Hasan Bulut Computer Science Department Indiana University.
 A data processing system is a combination of machines and people that for a set of inputs produces a defined set of outputs. The inputs and outputs.
Pasewark & Pasewark Microsoft Office 2003 BASICS 1 MICROSOFT WORD Lesson 2 — Basic Editing.
Microsoft Office Illustrated Fundamentals Unit B: Understanding File Management.
Console Application Programming Brian Hendricks. Getting Started On the web –New user help adcon.fnal.gov/controls/clib/new_user.html –Library help adcon.fnal.gov/controls/libraries.html.
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
Chapter 33 CGI Technology for Dynamic Web Documents There are two alternative forms of retrieving web documents. Instead of retrieving static HTML documents,
XP New Perspectives on Introducing Microsoft Office XP Tutorial 1 1 Introducing Microsoft Office XP Tutorial 1.
XP New Perspectives on Browser and Basics Tutorial 1 1 Browser and Basics Tutorial 1.
Copyright © 2007, Oracle. All rights reserved. Managing Concurrent Requests.
1 2 Lab 2: Organizing Your Work. 2 Competencies 3 After completing this lab, you will know how to: 1. Use Explorer to manage files. 2. Copy files. 3.
With Windows 7 Introductory© 2011 Pearson Education, Inc. Publishing as Prentice Hall1 Windows 7 Introductory Chapter 2 Managing Libraries Folders, Files.
Chapter 6: User-Defined Functions
Microsoft ® Business Solutions–Navision ® 4.0 Development II - C/SIDE Solution Development Day 2.
Key Applications Module Lesson 21 — Access Essentials
History of Windows Data Sharing Carlotta Eaton Exploring Microsoft Visual Basic 5.0 To insert your company logo on this slide From the Insert Menu Select.
What’s new in Kentico CMS 5.0 Michal Neuwirth Product Manager Kentico Software.
Pasewark & Pasewark Microsoft Office XP: Introductory Course 1 INTRODUCTORY MICROSOFT WORD Lesson 2 – Basic Editing.
The Advantage Series © 2004 The McGraw-Hill Companies, Inc. All rights reserved CHAPTER 1 Integrating Office Word and Office Excel.
FIRST COURSE Integration Tutorial 1 Integrating Word and Excel.
Objectives Learn about object linking and embedding (OLE) Embed an Excel chart in a Word document Edit an embedded Excel chart in Word Link an Excel worksheet.
Lecture 12. Windows registry Structure of the registry Loading and storing data in registry.
Window’s Edit Tools. Cut To remove an object from a document and place it in a buffer. In word processing, for example, cut means to move a section of.
OLE Slide No. 1 Object Linking and Embedding H OLE H definition H add other information to documents H copy.
Internal and Confidential Cognos CoE COGNOS 8 – Event Studio.
XP Tutorial 8 New Perspectives on Microsoft Windows XP 1 Microsoft Windows XP Object Linking and Embedding Tutorial 8.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
ERICSON BRANDON M. BASCUG Alternate - REGIONAL NETWORK ADMINISTRATOR HOW TO TROUBLESHOOT TCP/IP CONNECTIVITY.
Web Services An Introduction Copyright © Curt Hill.
1 Channel Access Concepts – IHEP EPICS Training – K.F – Aug EPICS Channel Access Concepts Kazuro Furukawa, KEK (Bob Dalesio, LANL)
Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9 th Edit9on Lecture 3 Chapter 1: Introduction Provided & Updated by Sameer Akram.
Computers Are Your Future Tenth Edition Spotlight 5: Microsoft Office Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall1.
Pasewark & Pasewark Microsoft Office XP: Introductory Course 1 INTRODUCTORY MICROSOFT WORD Lesson 2 – Basic Editing.
MS WORD INFORMATION TECHNOLOGY MANAGEMENT SERVICE Training & Research Division.
Some of the utilities associated with the development of programs. These program development tools allow users to write and construct programs that the.
Cliquez pour modifier le style du titre Cliquez pour modifier les styles du texte du masque Deuxième niveau Troisième niveau Quatrième niveau Cinquième.
Dreamweaver – Setting up a Site and Page Layouts
5.2 Microsoft Excel.
MPEG-4 Binary Information for Scenes (BIFS)
Chapter 3: Process Concept
z/Ware 2.0 Technical Overview
Operating Systems (CS 340 D)
Windows Programming Lecture 09.
Understanding File Management
Chapter 2: System Structures
CHAPTER 3 Architectures for Distributed Systems
KERNEL ARCHITECTURE.
User-Defined Functions
5.2 Microsoft Excel.
Lecture 2: Processes Part 1
Chapter 27 WWW and HTTP.
Application layer Lecture 7.
Protocol Basics.
Introduction to Classes and Objects
Threads Chapter 4.
Interprocess Communication
Chapter 3: Processes.
Chapter 2: Operating-System Structures
Channel Access Concepts
Microsoft Office Illustrated Fundamentals
Windows Development Dynadata Copyright, 2014 © DynaData S.A. 1/29.
Presentation transcript:

DATA EXCHANGE

Vilnius University Faculty of Mathematics and Informatics Student: Robert-Andrei Tudor Student ID:1809607

Data exchange Data exchange is the process of taking data structured under a source schema and transforming it into data structured under a target schema, so that the target data is an accurate representation of the source data. Data exchange allows data to be shared between different computer programs.

The Clipboard It’s a data buffer used for short-term data storage and/or data transfer between documents or applications. All applications have access to the clipboard. It is user-driven.

Each format is identified by an unsigned integer value. A memory object on the clipboard can be in any data format, called a clipboard format. Each format is identified by an unsigned integer value. For standard clipboard formats, this value is a constant defined in Winuser.h. For registered clipboard formats, it is the return value of the RegisterClipboardFormat function.

RegisterClipboardFormatA Parameters: lpszFormat (the name of the format) Type: LPCSTR Return Value Type: UINT If the function succeeds, the return value identifies the registered clipboard format. If the function fails, the return value is zero. To get extended error information, call GetLastError.

Clipboard Commands A user typically carries out clipboard operations by choosing commands from an application's Edit menu. Cut: Places a copy of the current selection on the clipboard and deletes the selection from the document. The previous content of the clipboard is destroyed. Copy:Places a copy of the current selection on the clipboard. The document remains unchanged. The previous content of the clipboard is destroyed. Paste: Replaces the current selection with the content of the clipboard. The content of the clipboard is not changed. Delete: Deletes the current selection from the document. The content of the clipboard is not changed. This command does not involve the clipboard, but it should appear with the clipboard commands on the Edit menu.

Clipboard Sequence Number The clipboard for each window station has an associated clipboard sequence number which is incremented whenever the contents of the clipboard change. To obtain the clipboard sequence number, call the GetClipboardSequenceNumber function.

Creating an Edit Menu An application should load an accelerator table containing the standard keyboard accelerators for the Edit menu commands. The TranslateAccelerator function must be added to the application's message loop for the accelerators to take effect.

Copying Information to the Clipboard In the Label application, the application-defined EditCopy function copies the current selection to the clipboard. This function does the following: Opens the clipboard by calling the OpenClipboard function. Empties the clipboard by calling the EmptyClipboard function. Calls the SetClipboardData function once for each clipboard format the application provides. Closes the clipboard by calling the CloseClipboard function.

Pasting Information from the Clipboard In the Label application, the application-defined EditPaste function pastes the content of the clipboard. This function does the following: Opens the clipboard by calling the OpenClipboard function. Determines which of the available clipboard formats to retrieve. Retrieves the handle to the data in the selected format by calling the GetClipboardData function. Inserts a copy of the data into the document. The handle returned by GetClipboardData is still owned by the clipboard, so an application must not free it or leave it locked. Closes the clipboard by calling the CloseClipboard function.

Dynamic Data Exchange And Dynamic Data Exchange Management Library The DDE protocol is a set of messages and guidelines. It sends messages between applications that share data and uses shared memory to exchange that data between them. Applications can use the DDE protocol for continuous exchanges in which they send updates to one another as new data becomes available. Windows also supports the Dynamic Data Exchange Management Library (DDEML) that provides an interface that simplifies the task of adding DDE capability to an application.

Dynamic Data Exchange (DDE) differs from the clipboard data- transfer mechanism. One difference is that the clipboard is almost always used as a one-time response to a specific action by the user (such as clicking Copy or Paste from a menu). Although DDE can also be initiated by a user, it typically continues without the user's further involvement.

Dynamic Data Exchange Protocol Because Windows has a message-based architecture, passing messages is the most appropriate method for automatically transferring information between applications. However, messages contain only two parameters (wParam and lParam) for passing data. As a result, these parameters must refer indirectly to other pieces of data when more than a few words of information pass between applications. The DDE protocol defines exactly how applications should use the wParam and lParam parameters to pass larger pieces of data by means of global atoms and shared memory handles. The DDE protocol has specific rules for allocating and deleting global atoms and shared memory objects. A global atom is a reference to a character string. In the DDE protocol, atoms identify the applications exchanging data, the nature of the data being exchanged, and the data items themselves.

Uses for DDE DDE can be used to implement a broad range of application features. Examples: Linking to real-time data, such as to stock market updates, scientific instruments, or process control. Creating compound documents, such as a word processing document that includes a chart produced by a graphics application. Using DDE, the chart will change when the source data is changed, while the rest of the document remains the same. To use the DDEML, you must include the DDEML.H header file in your source files, link with the USER32.LIB file, and ensure that the DDEML.DLL file resides in the system's path.

Client, Server, and Conversation Two applications participating in DDE are said to be engaged in a DDE conversation. The application that initiates the conversation is the DDE client application; the application that responds to the client is the DDE server application. Since a DDE conversation is identified by the pair of handles to the windows engaged in the conversation, no window should be engaged in more than one conversation with another window. Either the client application or the server application must provide a different window for each of its conversations with a particular server or client application.

Dynamic Data Exchange Message Flow A typical DDE conversation consists of the following events: The client application initiates the conversation, and the server application responds. The applications exchange data by any or all of the following methods: The server application sends data to the client at the client's request. The client application sends unsolicited data to the server application. The client application requests the server application to notify the client whenever a data item changes (warm data link). The client application requests the server application to send data whenever the data changes (hot data link). The server application carries out a command at the client's request. Either the client or server application terminates the conversation.

An application window that processes requests from a client or server must process them strictly in the order they are received. A client can establish conversations with more than one server; a server can have conversations with more than one client. When handling messages from more than one source, a client or server must process the messages of a conversation synchronously, but need not process all messages synchronously. In other words, it can shift from one conversation to another as needed.

Bibliography https://docs.microsoft.com/en-us/windows/desktop/dataxchg/data- exchange https://docs.microsoft.com/en- us/windows/desktop/dataxchg/about-dynamic-data-exchange#client- server-and-conversation https://docs.microsoft.com/en- us/windows/desktop/dataxchg/about-the-ddeml https://docs.microsoft.com/en- us/windows/desktop/dataxchg/clipboard