Knowledge Base

Static identifiers are missing from the ClassView Globals folder in Visual C++

Article ID: 138953

Article Last Modified on 12/14/2005


APPLIES TO


This article was previously published under Q138953

SYMPTOMS

The Globals folder in the ClassView of Developer's Studio is used to display and provide quick access to global identifiers in the current project. Identifiers declared as static that have file scope are missing from the ClassView Globals folder.

Note In Microsoft Visual C++ .NET and in Microsoft Visual C++ 2005, the nonstatic identifiers do not appear either.

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

MORE INFORMATION

Sample Code to Demonstrate Problem

   // Main.cpp
   #include <StdIo.h>
   ...
   static int nGlobalStaticInt;  // Will not show up in Globals Folder
   int        nGlobalInt;        // Will show up in Globals Folder
   ...
   void main(void)
   {
   }
				

Keywords: kbtshoot kbbug kbnofix kbide kbcode KB138953