views:

603

answers:

2

Wondering if anyone has experience and/or sample code for making DDE calls from Java. I've done DDE using win32 calls from the stddde library (DdeInitialize, DdeClientTransaction), and could write a JNI wrapper for this, but I was thinking that it might be nice to do it from JNA

I also have some concerns about the fact that DDE calls need to occur from a thread with message pump, and I'm not entirely certain of how to force that in Java.

The calls we'll be doing are pretty simple (equivalent to VBA's DDInitiate, DDEExcecute and DDETerminate functions).

A: 

A decade ago I used Neva Object Technology little DDE wrapper. Works, if you like that thing. But IIRC, you should read the FAQ (although probably doesn't isn't surprising if you have used DDE before).

Tom Hawtin - tackline
Thanks for the tip-off - I suspect this is the closest that I'm going to get to an off-the-shelf solution. I'll probably wind up adapting a C library we have via JNI.
Kevin Day