Results 1 to 5 of 5
  1. #1
    Platinum Lounger
    Join Date
    Nov 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    5,016
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Client DDE coding

    This doesn't really belong anywhere in particular, so I decided to post here, since the removals van <IMG SRC=http://www.wopr.com/w3timages/moved.gif> appears to call in often. <img src=/S/grin.gif border=0 alt=grin width=15 height=15>

    I'm trying to develop an AutoIt script that will talk with an existing (server) program via DDE. I have used this server program sucessfully from Excel, using formulas of the type:
    =<constIDString>|<request>!<parameter>

    and the correct string result is returned into the cell, from a running instance of the server program.

    The program appears to support ONLY DDE, no indication of inbuilt COM. What I'm after is some sort of client functionality for the AutoIt script, so that it can send requests and receive results, the same way as Excel is able to. I don't know if this is even possible with AutoIt, but I'm wondering if anyone has knowledge of the kind of coding required to build a client app (WIN32 APIs etc.) that can talk as easily as XL is able to in a DDE conversation.

    <img src=/S/crossfingers.gif border=0 alt=crossfingers width=17 height=16>
    Alan

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Client DDE coding

    Yep, the <IMG SRC=http://www.wopr.com/w3timages/moved.gif> van came along! <img src=/S/grin.gif border=0 alt=grin width=15 height=15>

    AutoIt is third-party software, so this forum is more appropriate than a Windows forum.

  3. #3
    Platinum Lounger
    Join Date
    Nov 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    5,016
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Client DDE coding

    I'm not specifically interested in just AutoIt here - more general coding at the Win32 API level. To this end, I've dug in harder and found some links, which I'll mention here in case someone searches for the topic in future:

    DDClient DDE ActiveX control component for Visual Basic and VB.NET
    Dynamic Data Exchange (DDE) and NetDDE FAQ
    CodeGuru: Using DDE on Your VB Application

    This last one show some promise - there are 2 downloadable VB projects, which when viewed "as text" will probably give me, directly or indirectly, all of the base windows calls I need.

    Alan

  4. #4
    5 Star Lounger
    Join Date
    Mar 2002
    Location
    Buenos Aires, Argentina
    Posts
    877
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Client DDE coding

    I'm not sure what DDE is about (besides the meaning of the acronym), but in case other loungers are as clueless as I am, bear in mind the AutoIt Forum.
    It's more likely that users of that forum will have encountered a similar difficulty when developing an analog application. Anyway I hope you worked it out by now <img src=/S/smile.gif border=0 alt=smile width=15 height=15>.
    <img src=/w3timages/blue3line.gif width=33% height=2>
    <img src=/S/flags/Argentina.gif border=0 alt=Argentina width=30 height=18> <big><font color=4682b4><font face="Comic Sans MS">Diegol</font face=comic></font color=4682b4> </big>

  5. #5
    Platinum Lounger
    Join Date
    Nov 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    5,016
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Client DDE coding

    Just FYI...

    More digging has led me to the Dynamic Data Exchange Management Library. I think that this will provide the sort of generic solution I'm after. It's decidedly focused on C++ implementation, so will probably be best suited to building a .DLL which could then be used by various applications/ languages.

    Alan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •