PC Review


Reply
 
 
guy
Guest
Posts: n/a
 
      16th Feb 2005
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.


 
Reply With Quote
 
 
 
 
Nicholas Paldino [.NET/C# MVP]
Guest
Posts: n/a
 
      16th Feb 2005
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]
- (E-Mail Removed)

"guy" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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.
>



 
Reply With Quote
 
guy
Guest
Posts: n/a
 
      16th Feb 2005
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]" <(E-Mail Removed)> wrote in
message news:%(E-Mail Removed)...
> 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]
> - (E-Mail Removed)
>
> "guy" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> 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.
>>

>
>



 
Reply With Quote
 
psg
Guest
Posts: n/a
 
      16th Feb 2005
"guy" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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


 
Reply With Quote
 
guy
Guest
Posts: n/a
 
      17th Feb 2005
Just what I needed. Many thanks.

"psg" <(E-Mail Removed)> wrote in message news:cv0i97$5fr$(E-Mail Removed)...
> "guy" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> 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
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:21 AM.