PRB: ClassView Cannot Find Function That Has Been Moved

Last reviewed: July 25, 1997
Article ID: Q140502
The information in this article applies to:
  • Microsoft Visual C++, 32-bit Edition, versions 4.0, 5.0

SYMPTOMS

If a function definition is moved to a different place in a source file, navigating to that function from ClassView will no longer work. ClassView will jump to the line in the source file where the function used to be defined.

CAUSE

ClassView uses bookmarks to determine where to jump to in the file. The bookmarks are not updated until the file is saved.

RESOLUTION

Save the source file.

STATUS

This behavior is by design.

MORE INFORMATION

To observe this behavior, save the following sample file. Move one of the function definitions to a different line, and then attempt to use ClassView to navigate to that function

Sample Code

   /* Compile options needed: none
   */

   class TestClass {
   public:
      void FuncA( void );
      void FuncB( void );
      void FuncC( void );
      TestClass(){;}
      ~TestClass(){;}
   };
   void TestClass::FuncA( void ){}
   void TestClass::FuncB( void ){}
   void TestClass::FuncC( void ){}


Additional query words: Class View
Keywords : VwbIss
Version : 4.0 5.0
Platform : NT WINDOWS
Issue type : kbprb


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: July 25, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.