Using OLE to Perform Standard DDE Operations

Last reviewed: February 17, 1995
Article ID: Q74801
The information in this article applies to:
  • Microsoft OLE version 1.0

In general, the OLE libraries can be used to perform the same types of operations as the Dynamic Data Exchange Management Library (DDEML). With the OLE libraries, an application can:

  • Initialize conversations based on application and topic names or wild cards
  • Request data for named items in negotiated formats from a server
  • Establish an advise loop, (that is, request that a server notify the client of changes to the values of specified items, and optionally send the data when the change occurs)
  • Send data from a server to a client
  • Poke data from a client to a server
  • Send a command (execute string) to the server

To get an idea of how these operations are performed using the OLE libraries, review the OLE library API. Except for sending commands, the OLE API was designed with embedded and linked objects in mind; however, OLE is applicable to traditional, nonpersistent DDE items.

Because DDE execute strings are outside of the realm of the OLE protocol, a special API has been provided. The OleExecute function in OLECLI (the OLE client library) enables an application to send a DDE execute command with an arbitrary command string. The server responds to this command using the Execute method defined in the OLEDOCUMENTVTBL structure.


Additional reference words: OLE DDEML 3.10 1.00
KBCategory: kbole kbprg
KBSubcategory: LeoneCliMisc LeoneSvrMisc


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: February 17, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.