PRB: NetDDE Fails to Connect Under Windows 95Last reviewed: September 29, 1995Article ID: Q131025 |
The information in this article applies to:
SYMPTOMSAn application using Network Dynamic Data Exchange (NetDDE) fails to connect to another DDE application on another computer.
CAUSEOne of the reasons could be that NETDDE.EXE (a system component) is not running. Network Dynamic Data Exchange (NetDDE) allows two DDE applications to communicate with each other over the network. In Windows for Workgroups, the NETDDE.EXE (a system component) was loaded by default. However under Window 95, NETDDE.EXE is not loaded by default.
RESOLUTIONAn application using the netDDE services should check if the netDDE system component is loaded. if NETDDE.EXE isn't running, the application should run it.
Sample CodeThe following sample code checks to see if NETDDE.EXE is loaded and tries to load it if necessary. The sample code works for both 32-bit and 16-bit applications. BOOL IsNetDdeActive() { HWND hwndNetDDE;
// find a netDDE windowhwndNetDDE = FindWindow("NetDDEMainWdw", NULL); // if exists then NETDDE.EXE is runningif(NULL == hwndNetDDE) { UINT uReturn; // otherwise launch the NETDDE.EXE with show no active uReturn = WinExec("NETDDE.EXE", SW_SHOWNA); // if unsucessful return FALSE. if(uReturn <= 31) return FALSE; } // NetDDE is runningreturn TRUE; }
STATUSThis behavior is by design.
|
Additional reference words: 4.00
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |