Need a quick DDE alternative/solution, Please

  • Thread starter Thread starter jimcarrey363
  • Start date Start date
J

jimcarrey363

In a program that I'm converting from VB6 to C# (VS .Net 2003 not
2005) there are a few DDE calls and they obviously don't work anymore
in .NET. I'm trying to find an easy way around this because there are
only 3 lines of code in the app for DDE.

frmDialer.txtDDEPop.LinkMode = NONE
frmDialer.txtDDEPop.LinkTopic = "<nameofprogram>"
frmDialer.txtDDEPop.LinkMode = MANUAL

There HAS to be an easy way around this. I've been searching Google
for 2 hours now and can't find a good solution.

The one thing that people keep referring to, NDDE

http://www.gotdotnet.com/Community/...mpleGuid=2c8c36cf-a974-4b7b-8924-2ed516b75181

Doesn't even allow me to load the reference to the .dll file in 2003,
only 2005 and I can't use 2005 for this project.

Anyone have ANY insight on this??
 
Are you using this program as a client, or as a server? Either way, it
seems your only option is going to be to access the DDE API through the
P/Invoke layer. It won't be pretty, but it should allow you to get the job
done.

Hope this helps.
 
It is used as a client to connect to a server program that I don't own
the code to. It's an external app used to get some user information.

Could you help me out by explaining a little more about what I would
do to use this P/Invoke layer?
I appreciate it. Thanks

Are you using this program as a client, or as a server? Either way, it
seems your only option is going to be to access the DDE API through the
P/Invoke layer. It won't be pretty, but it should allow you to get the job
done.

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)


In a program that I'm converting from VB6 to C# (VS .Net 2003 not
2005) there are a few DDE calls and they obviously don't work anymore
in .NET. I'm trying to find an easy way around this because there are
only 3 lines of code in the app for DDE.
frmDialer.txtDDEPop.LinkMode = NONE
frmDialer.txtDDEPop.LinkTopic = "<nameofprogram>"
frmDialer.txtDDEPop.LinkMode = MANUAL
There HAS to be an easy way around this. I've been searching Google
for 2 hours now and can't find a good solution.
The one thing that people keep referring to, NDDE

Doesn't even allow me to load the reference to the .dll file in 2003,
only 2005 and I can't use 2005 for this project.
Anyone have ANY insight on this??
 
Back
Top