Home All Groups Group Topic Archive Search About

Porting VB6 to .Net - DDE replacement?

Author
24 May 2006 5:43 PM
James Minns
Hi,
I'm porting some legacy software to .Net; its a communications driver that
speaks to the outside world via DDE.
Since MS dropped DDE support in VB after version 6, is there some
workaround?

Maybe a couple of classes, one to embed in the form to be the "link source"
and another to add in a class derived from textbox?

I looked at the ddeml messages but the implementation would be horrendous.
Any ideas?


Thanks,    James

Author
24 May 2006 5:55 PM
aaron.kempf@gmail.com
wow.. no idea good luck & sorry

isn't DDE like _HELLA_ old?
Author
24 May 2006 8:02 PM
James Minns
<aaron.ke***@gmail.com> wrote in message
news:1148493335.706528.7180@j73g2000cwa.googlegroups.com...
> wow.. no idea good luck & sorry
>
> isn't DDE like _HELLA_ old?

Yes, old, and still in use for communication server, (and by explorer -
every time you double-click a document, explorer uses DDE to tell a program
to open the file).

James
Author
24 May 2006 10:12 PM
Brian Gideon
James,

Like you said the DDEML can be used from within VB.NET.  But you're
right, it's considerably more difficult than what some people would
think for several reasons.  I have a completely free and open source
library that has an easy interface for using DDE in .NET applications
that may work for you.

<http://workspaces.gotdotnet.com/ndde>

Brian

James Minns wrote:
Show quoteHide quote
> Hi,
> I'm porting some legacy software to .Net; its a communications driver that
> speaks to the outside world via DDE.
> Since MS dropped DDE support in VB after version 6, is there some
> workaround?
>
> Maybe a couple of classes, one to embed in the form to be the "link source"
> and another to add in a class derived from textbox?
>
> I looked at the ddeml messages but the implementation would be horrendous.
> Any ideas?
>
>
> Thanks,    James
Author
26 May 2006 4:44 PM
aaron.kempf@gmail.com
wow. crazy.

what do you mean by communication server?

can't you either hook an API call; or setup a filesystemwatcher for
watching for files moving on a per-drive basis instead of piggybacking
onto explorer??


-Aaron
Author
26 May 2006 5:32 PM
Brian Gideon
Aaron,

I assume this post was meant for James.  I'll answer it anyway.

There are still applications today who's only mechanism for
communicating with other processes on the operating system is DDE.  DDE
applications that publish data are typically called servers while those
that subscribe or request data are called clients.  The communication
server the OP is speaking of could be a gateway into a PLC or some
other application that provides realtime data.  It's hard to say.

I think the OP was only presenting an example of where DDE is used when
he mentioned explorer.  I didn't see where he mentioned using DDE to
capture file system events.

You're right though.  DDE is really old and should be avoided whenever
possible.  It's terrible to work with.

Brian

aaron.ke***@gmail.com wrote:
Show quoteHide quote
> wow. crazy.
>
> what do you mean by communication server?
>
> can't you either hook an API call; or setup a filesystemwatcher for
> watching for files moving on a per-drive basis instead of piggybacking
> onto explorer??
>
>
> -Aaron
Author
26 May 2006 5:45 PM
aaron.kempf@gmail.com
i just see a lot of options inside of MS access for 'ignore DDE
refresh' and stuff like that; i wish i knew what those did in real
world.

i remember that goldmine used to use a bunch of DDE calls back in the
day i think also
Author
1 Jun 2006 8:35 PM
James Minns
Brian, thanks for sharing this code!
James

Show quoteHide quote
"Brian Gideon" <briangid***@yahoo.com> wrote in message
news:1148508732.438250.97690@i40g2000cwc.googlegroups.com...
> James,
>
> Like you said the DDEML can be used from within VB.NET.  But you're
> right, it's considerably more difficult than what some people would
> think for several reasons.  I have a completely free and open source
> library that has an easy interface for using DDE in .NET applications
> that may work for you.
>
> <http://workspaces.gotdotnet.com/ndde>
>
> Brian
>
> James Minns wrote:
>> Hi,
>> I'm porting some legacy software to .Net; its a communications driver
>> that
>> speaks to the outside world via DDE.
>> Since MS dropped DDE support in VB after version 6, is there some
>> workaround?
[x]