CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 1999
    Location
    UK (South)
    Posts
    93

    Lost Class View information in MFC Project.

    On loading the project I am getting the message

    "Cannot access the ClassView information file. ClassView information will not be available."

    Subsequently the class view pane in the project navigator does not populate. As I use it quite extensively I would like to restore it.

    This problem has occured before I think I deleted a file and it recreated it, but I cant remember which file it was. I have tried renaming the *.clw file but it has not rectified the problem.

    Does Anyone have any suggestions?

    Simon Pettman


  2. #2
    Join Date
    Oct 2001
    Location
    Dublin, Eire
    Posts
    880

    Re: Lost Class View information in MFC Project.

    It is one of the classical bugs of VC++.

    The file to delete is ".ncb", may be the 2.clw" as well, may be the 2.opt".


    Elrond

    Please, rate if that helps.
    Elrond
    A chess genius is a human being who focuses vast, little-understood mental gifts and labors on an ultimately trivial human enterprise.
    -- George Steiner

  3. #3
    Join Date
    Jan 2002
    Location
    Houston, TX
    Posts
    1,421

    Re: Lost Class View information in MFC Project.

    To restore your Class view, close your project, then delete the .ncb file.

    The .ncb file contains class view information, while the .aps file contains resource information (if you select the resource tab), and the .clw file contains class wizard info.

    These files will automatically be reconstructed when you need them. The .ncb is built when the project is opened.

    Opening a resource in the resource tab will rebuild the .aps file or opening the Class Wizard (Ctrl-W) rebuilds the .clw and .aps files.

    The .opt file only contains user preferences and as such doesn't need to be deleted.


    Karl
    PGP KeyID: 0xDB02E193
    PGP Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193
    Be sure to rate those who help!
    -------------------------------------------------------------
    Karl - WK5M
    PP-ASEL-IA (N43CS)
    PGP Key: 0xDB02E193
    PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured