Thread: How to rebuild class view data

  1. #1
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607

    How to rebuild class view data

    Seems MSVC likes to crash inside of MFC projects with the MSDN help file open.

    Also, it tends to erase some files from your project when this happens. My whole project got fragged and I had to re-do the whole thing in another directory.

    Just in case I ever have this happen again, how do you tell MSVC to re-build the class view data? The file got erased during the crash and I could not re-build it. So since there was no class information, there was also no function 'hints' when you typed in objects.

    Like:

    CDC *dc=GetDC();

    dc->

    Normall MSVC comes up with a list box of functions, members that belong to class CDC. However because the project died, this didn't happen.

    My dev time is being prolonged by the fact that MSVC is one of the most unstable compilers I think I've ever used. The wizards have major bugs in them and the IDE crashes.

  2. #2
    Registered User
    Join Date
    Apr 2002
    Posts
    1,571
    delete *.ncb, *.opt, *.plg, *.aps files in your project. Open up your project and do a rebuild. That usually does the trick.

    Why don't you use another compiler then?
    "...the results are undefined, and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces." --Scott Meyers

  3. #3
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    I think that if you delete the NCB file from the project, it'll force VC++ to rebuild the class view and intellisense. If I remember rightly that is! Best backup that file before following my advice

    [edit]oops, too late

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help with FIFO QUEUE
    By jackfraust in forum C++ Programming
    Replies: 23
    Last Post: 04-03-2009, 08:17 AM
  2. Message class ** Need help befor 12am tonight**
    By TransformedBG in forum C++ Programming
    Replies: 1
    Last Post: 11-29-2006, 11:03 PM
  3. Replies: 4
    Last Post: 06-14-2005, 05:45 AM
  4. Warnings, warnings, warnings?
    By spentdome in forum C Programming
    Replies: 25
    Last Post: 05-27-2002, 06:49 PM