473,395 Members | 1,681 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Porting VB6 to .Net - DDE replacement?

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
May 24 '06 #1
7 5361
wow.. no idea good luck & sorry

isn't DDE like _HELLA_ old?

May 24 '06 #2
<aa*********@gmail.com> wrote in message
news:11********************@j73g2000cwa.googlegrou ps.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
May 24 '06 #3
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?

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


May 24 '06 #4
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

May 26 '06 #5
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

aa*********@gmail.com wrote:
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


May 26 '06 #6
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

May 26 '06 #7
Brian, thanks for sharing this code!
James

"Brian Gideon" <br*********@yahoo.com> wrote in message
news:11*********************@i40g2000cwc.googlegro ups.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]
Jun 1 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Mart Rogers | last post by:
I am porting an Add In from VB6 to VB.Net. Does anyone know what the equivelent of Application.CodePane and Application.CodeModule are under .Net? Thanks.
53
by: Kerberos | last post by:
I followed Dan Cederholm's image replacement tutorial, to replace a header tag by a logo. The h1 is clickable if no CSS is applied but it I replace it by the logo, the area isn't clickable anymore...
3
by: Vibha Tripathi | last post by:
Hi Folks, I put a Regular Expression question on this list a couple days ago. I would like to rephrase my question as below: In the Python re.sub(regex, replacement, subject)...
7
by: Sonny | last post by:
I need to port a library that is written entirely in C to C++. The library is supported on quite a few platforms (windows, Solaris, Linux, AIX, HP-UX, OSX, etc...) and there's quite an existing...
5
by: Ryan Liu | last post by:
Hi All, Now I am porting CC to GCC and I have some problems. Would you mind tell me some document which have some description how to port CC to GCC ?? Thank you very much. Ryan
4
by: golu | last post by:
Has any body done the porting from oracle to sql server, what were the issues in porting the data bases? Also suggest some resources which can be helpful in the porting project TIA Golu
4
by: Chris Travers | last post by:
Hi all; A few years ago, I set about porting a PHP application from MySQL to PostgreSQL, after realizing that MySQL wasn't going to be able to handle it. In order to do this, I built a light,...
1
by: lawrence k | last post by:
Want to replace the limit clause in a query, but can't get it right. What's wrong with this: $pattern = "(.*)limit (.*)"; $replacement = '$1'; $replacement .= "LIMIT $limit"; $replacement .=...
4
by: Ian | last post by:
I would like to hear from others who have considered and/or ported code from traditional C++ to C++/CLI. The class library I am considering porting to C++/CLI was written in traditional C++ with...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.