Microsoft KB Archive/190975

= BUG: After you remove a file from a project, IntelliSense in Visual C++ 6.0 continues to recognize the functions and classes in that removed file =

Article ID: 190975

Article Last Modified on 9/1/2005

-

APPLIES TO


 * Microsoft Visual C++ 6.0 Enterprise Edition
 * Microsoft Visual C++ 6.0 Professional Edition
 * Microsoft Visual C++ 6.0 Standard Edition

-



This article was previously published under Q190975



SYMPTOMS
When files are deleted from a project, IntelliSense continues to recognize the functions and classes that the removed file contained.



CAUSE
When a file is removed, none of the functions or classes are removed from IntelliSense's "memory."



RESOLUTION
To have IntelliSense remove these functions and classes, close the project workspace, and delete the project's .ncb file. When the project is reopened in Visual C++, the .ncb file will be re-created with the correct information.



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section. This problem was corrected in Microsoft Visual C++ .NET.



Steps to reproduce the behavior
 In a Visual C++ project, click New on the File menu. On the Files tab, select C/C++ Header file. Name the new file Test.h.  In Test.h type the following text: class CTest {     public : void MyTest{} }                        In the FileView pane, select Test.h and press the DEL key. Test.h is now removed from the project.</li>  In another source file, type the following: CTest test; test. </li></ol>

Notice that the Members list for the test object displays, even though the class definition has been removed by deleting the file.

<div class="references_section">