Thread: can not add member error

  1. #1
    Registered User
    Join Date
    May 2004
    Posts
    164

    can not add member error

    I think I goofed when closing a work in progress, now my app seems to have locked my different classes and will not allow me to add members to it.

    When I look in class view I have the key next to my different classes and every time I try to edit the code for a button or some object in the window, I get prompted with an error stating
    "can not add new member"

    I can compile fine with no errors, I simply can not make changes to my classes.

    Can anyone point me to my mistake and how I might reverse it?

    Yours truly
    Village Idiot

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    Are any source files read-only?

    gg

  3. #3
    Registered User
    Join Date
    May 2004
    Posts
    164
    Sorry for the late response, when I run a properties on the source files, the read only is not selected, so I assume they are valid, but I think I see your point, it would make sense that the source files are where I am adding the code for the new members.

    Is there another way to review this, that I might be missing?

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    This is for VC6 (same idea for VC7, but that uses different files)
    There are a number of generated files which the IDE uses for things like intellisense which may have become corrupted (eg project.ncb, project.opt)

    The important files are
    - all your source and header files
    - project.dsp and project.dsw

    So, without VC6 running at all,
    1. Make a backup of your entire project "as is", just in case
    2. delete anything which isn't precious like the "Debug" and "Release" build directories and the above mentioned IDE generated files.

    The IDE will recreate all it needs the next time you start VC6 and do a build.

    Don't forget the backup before you start deleting files.

  5. #5
    Registered User
    Join Date
    May 2004
    Posts
    164
    Cool, I'll give it a shot, thanks Salem, thanks CodePlug

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. file reading
    By gunghomiller in forum C++ Programming
    Replies: 9
    Last Post: 08-07-2007, 10:55 PM
  2. Post...
    By maxorator in forum C++ Programming
    Replies: 12
    Last Post: 10-11-2005, 08:39 AM
  3. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  4. Please Help - Problem with Compilers
    By toonlover in forum C++ Programming
    Replies: 5
    Last Post: 07-23-2005, 10:03 AM
  5. UNICODE and GET_STATE
    By Registered in forum C++ Programming
    Replies: 1
    Last Post: 07-15-2002, 03:23 PM