PRB: "DDE Connection Failed" When Viewing a File

Last reviewed: November 24, 1997
Article ID: Q132929
3.04 3.10 4.00 5.00 | 3.04 3.10 4.00 5.00 | 3.04 3.10 4.00 | 3.04 3.10
WINDOWS             | WINDOWS NT          | MS-DOS         | Macintosh
kbusage kbprb

The information in this article applies to:

  • Microsoft Visual SourceSafe, versions 4.0, 5.0
  • Microsoft SourceSafe for Windows, versions 3.04 and 3.1
  • Microsoft SourceSafe for Windows NT, versions 3.04 and 3.1
  • Microsoft SourceSafe for MS-DOS, versions 3.04 and 3.1
  • Microsoft SourceSafe for Macintosh, versions 3.04 and 3.1

SUMMARY

Occasionally, you may get the error message "DDE Connection Failed" when you view a file within SourceSafe. Other errors may be returned, such as "Unable to Execute..." or "Error Opening...".

CAUSE

This problem occurs when SourceSafe cannot open a file with its default editor. This may be due to the editor file being moved, deleted, or mapped to a different network drive.

RESOLUTION

To work around this problem, you must tell SourceSafe what editor to use for a specified file:

  1. Open the SS.INI file for that user (NOTE: The SRCSAFE.INI file may be used, but it is not suggested since each machine may be configured differently).

  2. Add the line to tell SourceSafe the correct associations and file locations. Example:

          .DOC = C:\MSOFFICE\WINWORD\WINWORD.EXE %1
    

    NOTE: The %1 is needed to tell the DDE connection that this is the file that should be opened.

    IMPORTANT: If the applications path contains spaces, you must enclose the entire path in quotes (""), such as:

          .DOC = "C:\MS OFFICE\WINWORD\WINWORD.EXE" %1
    

  3. Close and restart SourceSafe for the changes to take effect.

If you still have problems opening a file for viewing, then make sure that the following have been checked:

  1. The path to the .EXE is correct.

  2. The .EXE file exists.

  3. The extension is correct.

  4. The extension line was put above any section headers in the INI file.

This technique can also be used to override any associations that may be made with files. For instance, a user may want to view a .C file in Notepad, rather than starting Visual C++ every time.


KBCategory: kbusage kbprb
KBSubcategory: SourceSafe ss3 vss vbwin
Additional reference words: 3.10 4.00 5.00
Keywords : SourceSafe ss3 vbwin vss kbprb kbusage
Version : 3.04 3.10 4.00 5.00 | 3.04 3.10
Platform : MACINTOSH MS-DOS NT WINDOWS


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: November 24, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.