Bilal,
Thanks for the pointers to those samples.
Of course, I know about DDE/DDEML; what I don't know is how to use them. This subject is notorious for being poorly documented. I've come across a variety of code samples - in straight DDE, using DDEML, and encapsulating DDE in C++ classes (as in your example).
Without exception, these have all been obese and unreadable; also, irrelevant to what I want to do, since they invariably assume a clipboard format of CF_TEXT, which is used in toy examples and can't be changed.
I've also come across a few shareware ActiveX controls which were meant to provide some DDE functionality. However, some of these produce code that won't compile under MSVC++, some are incomplete in what they do, and some won't e
ven install and register properly.
I was asking about NI's way of doing this, since CVI provides a small collection of DDE functions, all of which I can understand. The point of my query was to find out whether I could use these (originally "C") functions in a C++ project, since, in order to do anything useful, my all-important client callback function has to do things in C++ (such as passing data back up to my dialog class for further processing).
All in all, the cost of buying CVI would probably be worthwhile, given the time it would save me. I just need to know whether I can incorporate the CVI DDE functions in a C++ project, or whether - perhaps - I should use something designed specifically for VC++, such as the Data Socket classes in Measurement Studio.
That's just by way of background. Thanks for writing in.
Yours
Pawel Tokarczuk