469,306 Members | 1,794 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,306 developers. It's quick & easy.

C# and DDE

guy
Is there an example somewhere of using C# with DDE. I have an ancient
application that is a DDE server and would like to get some live info from
it in a C# app. I need an example of C# as a DDE client not server.

Thanks.
Nov 16 '05 #1
4 27602
guy,

Since DDE is dependent on windows messages, all you really have to do is
define the SendMessage API function, and call that with the appropriate
parameters, marshaling the parameters you want to send in the correct
manner.

You just have to find the window handle (probably through FindWindow),
and then you are set.

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"guy" <wi*********@hotmail.com> wrote in message
news:ea**************@TK2MSFTNGP15.phx.gbl...
Is there an example somewhere of using C# with DDE. I have an ancient
application that is a DDE server and would like to get some live info from
it in a C# app. I need an example of C# as a DDE client not server.

Thanks.

Nov 16 '05 #2
guy
Hi Nicholas,

I've worked with DDE in both C and C++ in older versions of Microsoft C and
Visual C or whatever they called it then. They then came out with DDEML
which helped a bit. However, I'm having real problems trying to find any
corresponding structure in C# so still not sure where to turn. I'm also a
bit confused as to why I'm struggling with this in C# because it was/is such
a simple concept in C/C++.

I'll keep hunting. Thanks for the help.
Guy

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:%2***************@TK2MSFTNGP12.phx.gbl...
guy,

Since DDE is dependent on windows messages, all you really have to do
is define the SendMessage API function, and call that with the appropriate
parameters, marshaling the parameters you want to send in the correct
manner.

You just have to find the window handle (probably through FindWindow),
and then you are set.

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"guy" <wi*********@hotmail.com> wrote in message
news:ea**************@TK2MSFTNGP15.phx.gbl...
Is there an example somewhere of using C# with DDE. I have an ancient
application that is a DDE server and would like to get some live info
from it in a C# app. I need an example of C# as a DDE client not server.

Thanks.


Nov 16 '05 #3
psg
"guy" <wi*********@hotmail.com> wrote in message
news:ea**************@TK2MSFTNGP15.phx.gbl...
Is there an example somewhere of using C# with DDE. I have an ancient
application that is a DDE server and would like to get some live info from
it in a C# app. I need an example of C# as a DDE client not server.


http://www.gotdotnet.com/Community/U...4-2ed516b75181

RGDS PSG
Nov 16 '05 #4
guy
Just what I needed. Many thanks.

"psg" <pg******@ki.net.pl> wrote in message news:cv**********@ck19.nni.pl...
"guy" <wi*********@hotmail.com> wrote in message
news:ea**************@TK2MSFTNGP15.phx.gbl...
Is there an example somewhere of using C# with DDE. I have an ancient
application that is a DDE server and would like to get some live info
from it in a C# app. I need an example of C# as a DDE client not server.


http://www.gotdotnet.com/Community/U...4-2ed516b75181

RGDS PSG

Nov 16 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by William C. White | last post: by
2 posts views Thread by Albert Ahtenberg | last post: by
3 posts views Thread by James | last post: by
reply views Thread by Ollivier Robert | last post: by
1 post views Thread by Richard Galli | last post: by
4 posts views Thread by Albert Ahtenberg | last post: by
1 post views Thread by inderjit S Gabrie | last post: by
2 posts views Thread by Jack | last post: by
3 posts views Thread by Sandwick | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Geralt96 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.