FIX: Error "Microsoft JScript error" After Copying Sample
This article was previously published under Q168265
This article has been archived. It is offered "as is" and will no longer be updated.
When you try to access a sample, you get an error message containing"Microsoft JScript runtime error". This occurs after you have already madeone copy of some other sample.
When the Developer Studio is installed to a directory with a path namecontaining high-ASCII characters, such as those that are used in manynon-English character sets, it has problems copying samples.
To actually fix the bug, get the Service Pack.
To work around the problem: after copying a sample, exit DeveloperStudio and restart it.
Microsoft has confirmed this to be a bug in the Microsoft products listedat the beginning of this article. This bug has been corrected in VisualStudio 97, German and Japanese localized versions, and in Visual Studio97 Service Pack 1.
For additional information about the Visual Studio 97 Service Pack 1,please see the following article in the Microsoft Knowledge Base:
170365 INFO: Visual Studio 97 Service Packs - What, Where, and Why
Steps to Reproduce Behavior
- 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).
- Install Visual C++ to the directory with high-ASCII characters.
- In Developer Studio, from Help/Search (index tab) type POLYGON, select "POLYGON sample (ATL)", and then the topic "POLYGON: The ATL Tutorial."
- Click the link "Click to open or copy the POLYGON project files" and Select to copy all.
- Choose to copy to any directory.
- Select another sample to download. For example, SUBEDIT (the next sample in the table of contents).
- When you attempt to "Click to open or copy the SUBEDIT project files", the "Microsoft JScript runtime error" appears.
- After you restart the Developer Studio IDE, it works correctly.
NOTE: If this was the first sample copied since installing Visual C++ (orone of the other products using Developer Studio), the default directoryname to copy to will contain incorrect character translations for the high-ASCII characters in the path. This is another symptom of the same bug.
For additional information, please see the following article in theMicrosoft Knowledge Base:
168264 FIX: Copying Samples to a Dir with High ASCII Stops File I/O
Article ID: 168265 - Last Review: 12/04/2015 16:57:05 - Revision: 1.0
Microsoft Visual Studio 97 Service Pack 3, Microsoft Visual C++ 5.0 Enterprise Edition, Microsoft Visual C++ 5.0 Professional Edition, Microsoft Visual J++ 1.1 Standard Edition, Microsoft Visual InterDev 1.0 Standard Edition
- kbnosurvey kbarchive kbbug kbfix kbvs97sp1fix kbvs97sp3fix kbvs97sp2fix KB168265