Skip to content
This repository has been archived by the owner on Jul 16, 2019. It is now read-only.

Latest commit

 

History

History
34 lines (23 loc) · 1.44 KB

README.md

File metadata and controls

34 lines (23 loc) · 1.44 KB

dde-xltable-server

Simple .NET Dynamic Data Exchange (DDE) Server

Based on NDde project: https://ndde.codeplex.com/ This library provides a convenient and easy way to integrate .NET applications with legacy applications that use Dynamic Data Exchange (DDE). DDE is an older interprocess communication protocol that relies heavily on passing windows messages back and forth between applications. Other, more modern and robust, techniques for interprocess communication are available and should be used when available. This library is only intended to be used when no other alternatives exist.

Sample:

    static void Main(string[] args)
    {
        using (var ddeServer = new Server("Vert"))
        {
            ddeServer.OnPokeAction = (topic, item, data, format) =>
            {
                var message = new DdeMessage(data, topic, item); // Excel table format by default
                Console.WriteLine($"{message.Topic}|{message.Item}: {message.Table.AllRowsToString()}");
            };

            Console.WriteLine("Starting server... Press <Enter> to exit");
            ddeServer.Register();

            Console.ReadLine();
            ddeServer.Unregister();
        }
    }

NuGet package

To install DdeExcelTableServer, run the following command in the Package Manager Console

PM> Install-Package DdeExcelTableServer