๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.os.ms-windows.programmer.tools.winsock
3 messages
3 total messages Started by Buteau Fri, 12 Apr 1996 12:54
DDE, C++ and ILOG VIEWS
#1
Author: Buteau
Date: Fri, 12 Apr 1996 12:54
19 lines
1180 bytes
I'm developping an application with ILOG VIEWS and the BC4.52 compiler


I need to use the DDE mechanism to make interapp communication.

Has somebody written some classes that encapsulate the DDE mechanism??

(I mean a class like DDEclient that you can derive from, and that has 
member functions like send, receive, poke ....)


(I looked at the wxwin library that does a quite good encapsulation of DDE 
complexity but it is to linked with the GUI part of the library and I cannot
easily use it with ILOG VIEWS)


Any idea 

Thanks in advance .
Re: DDE, C++ and ILOG VIEWS
#2
Author: Dr. Thomas Kunst
Date: Fri, 12 Apr 1996 17:49
9 lines
1008 bytes
The tools.h++ class library from RogueWave does include classes that treat 
DDE as a stream.
--
Dr. Thomas Kunst             |s  |d &|m  |  software design & management
                             |   |   |   |  GmbH & Co. KG
thomas.kunst@sdm.de          |   |   |   |  Thomas-Dehler-Str. 27
                                            81737 Mรผnchen
                                            Tel: 089/63812-221, Fax. -150
Re: DDE, C++ and ILOG VIEWS
#3
Author: Paul Meyer
Date: Tue, 16 Apr 1996 20:34
27 lines
1970 bytes
Buteau wrote:
> Has somebody written some classes that encapsulate the DDE mechanism??
> 
> (I mean a class like DDEclient that you can derive from, and that has
> member functions like send, receive, poke ....)

Errr, yes, but it was in the scope of a previous job and thus not suitable
for publication (and in fact I don't have a copy).

OTOH it only took me about a week to do the whole thing. Then again, I've
been using C++ since cfront 1.2 so I'm a bit familiar with class design.

The real trick is in allowing for the callbacks. DDE is not useful for
nontrivial things unless you use an asynchronous approach. Probably the
easiest design to use is to make the callback function dispatch to several
virtual member functions based on what it gets for parameters. There is
also the problem of deciding which DDE object should get the callback if
you instantiate more than one. I tried using the DDE provision for attaching
a user datum to a conversation, but it turns out that some important callbacks
occur in situations where that datum is not available. I had to fall back
to a runtime lookup table scheme. If you don't need more than one DDE object
in a program, though, this doesn't come up.

--
Paul Meyer        | When the Tremere ask you about your style of
pem@radmedia.com  | magic, just feel really confident and say,
pem@amurgsval.org | "These aren't the Druids you're looking for."
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads