Developer Studio cannot create files with no name extension (193474)



The information in this article applies to:

  • Microsoft Visual Studio 97
  • Microsoft Visual C++, 32-bit Enterprise Edition 5.0
  • Microsoft Visual C++, 32-bit Enterprise Edition 6.0
  • Microsoft Visual C++, 32-bit Professional Edition 5.0
  • Microsoft Visual C++, 32-bit Professional Edition 6.0
  • Microsoft Visual C++, 32-bit Learning Edition 6.0
  • Microsoft Visual C++ 2005 Express Edition
  • Microsoft Visual C++ .NET (2003)
  • Microsoft Visual C++ .NET (2002)
  • Microsoft Visual InterDev 1.0
  • Microsoft Visual Studio 2005 Professional Edition
  • Microsoft Visual Studio 2005 Standard Edition

This article was previously published under Q193474

SYMPTOMS

After creating a new file in the Developer Studio shell MSDev.exe or Devenv.exe, you cannot name it with a file name that does not have an extension.

RESOLUTION

After you save the new file in Developer Studio, close the file, rename it using Windows Explorer (or another technique), and then open it again.

STATUS

This behavior is by design.

MORE INFORMATION

Microsoft Windows Explorer uses file name extensions to determine the application that created the file. The file name extension is the portion of the file name following the final period "." in the name. In Windows Explorer, double-clicking a file name starts the application associated with the extension.

One of the Logo requirements for applications designed for Microsoft Windows operating systems is that they create data files with appropriate file name extensions.

Steps to Reproduce Behavior

  1. From the File menu in Developer Studio, click New and then click the Files tab.
  2. In the Files list, select Text File. Click OK without entering a file name.
  3. Type a character into the new file.
  4. From the File menu, click Save As. In the File name box, type "MyFile" (or any unique name). Click Save.

    Note The file name appears on the open window as "MyFile.txt".
  5. From the File menu, click Save As. In the File name box, type "MyFile.".

    Note The file name now appears as "MyFile..txt".
The same effect occurs with different extensions for the other file types that appear in the Files list when you click New in the File menu.

Modification Type:MajorLast Reviewed:1/20/2006
Keywords:kbvs2005applies kbvs2005swept kbDevStudio kbDSSTools kbide kbprb KB193474 kbAudDeveloper