FIX: Copying Samples to a Dir with High ASCII Stops File I/O

Last reviewed: December 18, 1997
Article ID: Q168264
The information in this article applies to:
  • Microsoft Visual Studio 97
  • Microsoft Visual C++, 32-bit Editions, version 5.0
  • Microsoft Visual J++, version 1.1
  • Microsoft Visual InterDev, version 1.0

SYMPTOMS

If you attempt to copy a sample from the online samples to a directory with high-ASCII characters in the path name, it does download, but when you try to open the project it cannot be found. The error message displays the correct path, but says:

   File Not Found
   Please verify that the path and file name are correct.

At this point, file I/O from the Developer Studio IDE to any directory with high-ASCII characters fails. For example, if you try to save a file to a directory with high-ASCII characters, you get the following message:

   Cannot save file. Make sure the directory exists and is not read-only.

CAUSE

Developer Studio is in an incorrect state after copying a sample to a directory with a path containing high-ASCII characters. All subsequent file name translations involving high-ASCII are done incorrectly.

RESOLUTION

To actually fix the bug, get the Service Pack.

To work around the problem: after copying the sample, exit Developer Studio and restart it.

STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug has been corrected in Visual Studio 97 German and Japanese localized versions, and in Visual Studio 97 Service Pack 1.

For additional information about the Visual Studio 97 Service Pack 1, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q170365
   TITLE     : INFO: Visual Studio 97 Service Packs - What, Where, and Why

MORE INFORMATION

Steps to Reproduce Behavior

  1. Create a directory with high-ASCII characters (to generate high-ASCII characters from a standard keyboard, hold down the Alt key and type a number between 128 and 255 on the numeric key pad).

  2. From Help/Search (index tab) type POLYGON, select "POLYGON sample (ATL)", and then topic "POLYGON: The ATL Tutorial."

  3. Click the link "Click to open or copy the POLYGON project files" and Select to copy all.

  4. Choose to copy to the directory that contains high-ASCII character.

  5. Try to open the project. It will not find the project.

  6. Try to save a file to any directory.

  7. After you restart the IDE, the file I/O error is resolved.

REFERENCES

For additional information, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q168265
   TITLE     : FIX: Error "Microsoft JScript error" After Copying Sample
Keywords          : VS97FixlistSP2 VS97FixlistSP1 VSInfoView VS97FixlistSP3
Technology        : kbatl
Version           : 5.0 97
Platform          : NT WINDOWS
Issue type        : kbbug
Solution Type     : kbfix kbservicepack


================================================================================


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: December 18, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.