Microsoft KB Archive/167845

= FIX: Class Wizard Deletes Source Files =

Article ID: 167845

Article Last Modified on 11/18/2003

-

APPLIES TO

 The ClassWizard, when used with:  Microsoft Visual C++ 5.0 Enterprise Edition

 Microsoft Visual C++ 5.0 Professional Edition 

-



This article was previously published under Q167845





SYMPTOMS
There are certain scenarios that result in the loss of source files (.cpp, .h and .IDL) when you use Class Wizard to add code to them.



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 Pack 1 - What, Where, and Why

<div class="moreinformation_section">

Steps to Reproduce Behavior
For example, the following steps delete an .IDL file that is in an ATL project:

<ol> Start a new instance of the Visual Studio IDE.</li> Create a new ATL COM AppWizard Application, DLL server, with the MFC Support check box selected (name it test).</li> Go to class view, right-click and add a class named testObject with interfaces.</li> Go to file view and select Class Wizard from the view menu.</li> Add a New Class from ClassWizard called CTestClass that is derived from a generic CWnd and click OK. You receive an error dialog with the following message:

"Unable to update the IDL file " :\test\test.idl". Make sure the file is not read-only and there is sufficient disk space"

When you dismiss this dialog box, your .idl file is deleted.</li></ol>

Keywords: kbbug kbfix kbnoupdate kbvs97sp1fix kbserver kbdll kbeedition kbarttypeinf KB167845

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.