Article ID: 166285
Article Last Modified on 11/21/2003
APPLIES TO
- Microsoft Visual C++ 5.0 Enterprise Edition
- Microsoft Visual C++ 5.0 Professional Edition
This article was previously published under Q166285
SYMPTOMS
When you convert a Visual C++ 4.x project, the following error messages may appear:
On Windows NT 4.0:
After selecting OK you may get the following error:
On Windows 95:
After selecting OK you get the following error:
-or-
Note that in both cases the address in the first message may vary, but the second one will be consistent.
CAUSE
There are two cases that will reproduce this problem:
Case 1
Projects that are missing a top-level project in the directory where the .MDP and .MAK files are located crash.
Case 2
Projects for which the .MDP and .MAK files have been renamed and have a subdirectory with the same name as the upper-level original project.
RESOLUTION
Steps to Reproduce Case 1
- In Visual C++ 4.0, create a workspace called Test of the Application type.
- Insert a top-level project called Top of any type.
- Using the Build|Configurations menu, remove the Test project and then close the project.
- In Visual C++ 5.0, open the Test workspace's Test.mdp file. Visual C++ 5.0 converts the project. MSDEV crashes and the error messages noted above appear.
Resolution for Case 1
- Under the Test directory which was created for the Test workspace there is a "Top" subdirectory. Rename this the "Top" subdirectory to "x" (any name is acceptable).
- In Visual C++ 5.0, open the Test workspace's Test.mdp file. Visual C++ 5.0 converts the project.
- Rename the "x" subdirectory to the original name and the project will work as expected.
In the general case, you may have several projects. Renaming any one of the subdirectories as shown above will work around this bug.
Steps to Reproduce Case 2
- In Visual C++ 4.0, create a workspace called Test of the Application type. It should be located in the Test directory.
- Insert a subproject of any type called Sub.
- Close the workspace.
- In the Test directory, rename Test.m?? to MyFile.*
- Create a subdirectory called Test\Test.
- In Visual C++ 5.0 open MyFile.mdp. MSDEV crashes and the error messages noted above appear.
Resolution of Case 2
- Rename the Test\Test subdirectory to Test\[anything].
- Convert the project using Visual C++ 5.0. Now you can restore the subdirectory name to Test\Test.
Please note that for case 2 the upper-level directory name is of no consequence. What is important is that there is a subdirectory with the same name as the original project name.
These scenarios apply to all versions of Visual C++ 4.x.
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 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
Additional query words: gpf ipf av
Keywords: kbbug kbfix kbvs97sp1fix kbide kbvs97sp2fix KB166285