Solved

DDE Over Network

Posted on 1997-08-13
4
497 Views
Last Modified: 2013-12-23
I'm trying to talk to another application over my Microsoft network.  Application 1 is running all the time on Win 95 and is set up as a DDE Server.  Application 2 is running on a WIN NT Server 4 and I want it to connect via DDE to Application 1.  I believe I need to use NETDDE but can't find any information on it.Any help gratefully received.Darren
0
Comment
Question by:Dazza051197
  • 2
  • 2
4 Comments
 
LVL 1

Expert Comment

by:wdawes
ID: 1548159
Windows NT will automatically start NetDDE when you start an application that requires NetDDE, but, Win95 is different. Do (Find, Files) from Win95 for the following files: nddeapi.dll, nddenb.dll, netdde.exe. (I'm assuming that you are using Microsoft's NetDDE, and not Wondwerware's). Click on netdde.exe to start it, then Ctrl-Alt-Del (task manager) to verify that it is running. If you want netdde.exe to start up automatically when Win95 is started, them copy netdde.exe to the StartUp folder. To test if NetDDE is working correctly between Win95 and Windows NT, use Chat (you may have to install Chat from your Win95 Setup CD, look in the \other directory).
0
 
LVL 1

Author Comment

by:Dazza051197
ID: 1548160
NETDDE is definitely running on all the machines on the network, but my application will not find the DDE conversation.  Do I need to do anything different in my code or should it just find it as a normal DDE conversation ?  Will I need to add anything to the registry on any of the machines so it knows which machine application 2 is on ?
0
 
LVL 1

Accepted Solution

by:
wdawes earned 150 total points
ID: 1548161
If NetDDE is running on NT, then you can verify this by going to the Services icon, and see that the two services, Network DDE and Network DDE DSDm are starting automatically. And, of course, you've verified that Chat or Hearts works between the two machines in question (highly recommended before proceeding) ...
 
Go to the NT server and run ddeshare.exe. Notice how Chat, Hearts, etc. have entries there. On Win95 you have to hack the registry to set up your DDE shares (actually you can run the WFW 3.11 version of ddeshare on Win95 to see how to set up the registry). Thus, it is easier to use WinNT for your DDE Server.
So you have to add a share for your application: on NT, run ddeshare; click Add a Share; enter your application name, and * for the topic name, in the Old Style box; click the Permissions button, and grant Full Control to Everyone,then OK; now highlight your newly added share for yout application, then click on Trust Share; click all options, and enter a zero forthe Cmd show overide, then OK.

On thing you may want to check in the code of your application is that the when the client INITIATES the first part of the DDE conversation, that the UNC for the server (say NODE2) is included, for example: \\NODE2\your_dde_server|some_topic, this being the DDE syntax \\NODENAME\APPLICATION|TOPIC!ITEM. After the  DDE conversation between NODE1(client) and NODE2(server) starts, the UNC (\\NODENAME or \\NODE2) is not necessary.

For a good primer on this, see http://www.visualautomation.com/info/tcntdde1.htm
 
0
 
LVL 1

Author Comment

by:Dazza051197
ID: 1548162
Thats what I was missing, the \\unc\app.  I thought everything would just be transparent, after all, hows my app1 supposed to know it's going to run on a network.  I'll just add a UNC entry to an INI file and leave the user to enter it.  Thanks for the help.Darren
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Enterprise networks where VoIP phones have been deployed frequently use port configurations that allow both a computer and an IP phone to be plugged into the same switch port but use different VLANs. On Cisco equipment I'm referring to the "native V…
Many of us in IT utilize a combination of roaming profiles and folder redirection to ensure user information carries over from one workstation to another; in my environment, it was to enable virtualization without needing a separate desktop for each…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now