Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Why have my Classes disappeared?

Why have my Classes disappeared?

Scheduled Pinned Locked Moved C / C++ / MFC
questionworkspace
7 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    LittleYellowBird
    wrote on last edited by
    #1

    Hi, I was happily editing my code today when I suddenly found that I had lost 30 classes! They no longer appear in the 'Workspace' area on the screen. If I look in the 'Files' tab the relevant files are there and the code compiles just fine. What the hell have I done???????? Any ideas of how I might get them to reappear would be brilliant. Many thanks & completely confused, Ali

    C H D 3 Replies Last reply
    0
    • L LittleYellowBird

      Hi, I was happily editing my code today when I suddenly found that I had lost 30 classes! They no longer appear in the 'Workspace' area on the screen. If I look in the 'Files' tab the relevant files are there and the code compiles just fine. What the hell have I done???????? Any ideas of how I might get them to reappear would be brilliant. Many thanks & completely confused, Ali

      C Offline
      C Offline
      Carlos Antollini
      wrote on last edited by
      #2

      It;s a common bug, only modify the header, and you will be the class in your workspece. For example add an Enter in your header..... ;) Best Regards Carlos Antollini. Pi Five[^]Creator Sonork ID 100.10529 cantollini

      L 1 Reply Last reply
      0
      • C Carlos Antollini

        It;s a common bug, only modify the header, and you will be the class in your workspece. For example add an Enter in your header..... ;) Best Regards Carlos Antollini. Pi Five[^]Creator Sonork ID 100.10529 cantollini

        L Offline
        L Offline
        LittleYellowBird
        wrote on last edited by
        #3

        Thank you, thank you, thank you :rose::rose::rose: I've been adding and deleteing files for the last hour trying to sort it out. I obviously hadn't got the right file. I took your advise and edited the headers, and bingo it is all there again. Phew, what a relief! Thanks again, Ali

        1 Reply Last reply
        0
        • L LittleYellowBird

          Hi, I was happily editing my code today when I suddenly found that I had lost 30 classes! They no longer appear in the 'Workspace' area on the screen. If I look in the 'Files' tab the relevant files are there and the code compiles just fine. What the hell have I done???????? Any ideas of how I might get them to reappear would be brilliant. Many thanks & completely confused, Ali

          H Offline
          H Offline
          Hari Krishnan Noida
          wrote on last edited by
          #4

          Hi, The .ncb file contains ClassView browser information. I believe, some of your .ncb(if you're using multiple projects) file permission may have changed. That is the cause. To check that, create a sample program and change .ncb file to read-only. Now you reload the project, you will not be able to see any classes in the classview. Hope this helps, if not better you move all your .ncb files to some other location. so that your .dsw/.dsp will recreate your class view again. regards ~Hari~

          L 1 Reply Last reply
          0
          • L LittleYellowBird

            Hi, I was happily editing my code today when I suddenly found that I had lost 30 classes! They no longer appear in the 'Workspace' area on the screen. If I look in the 'Files' tab the relevant files are there and the code compiles just fine. What the hell have I done???????? Any ideas of how I might get them to reappear would be brilliant. Many thanks & completely confused, Ali

            D Offline
            D Offline
            David Crow
            wrote on last edited by
            #5

            For some strange reason, the temporay files .NCB, .CLW, and .APS need to be deleted every so often, letting VC++ rebuild them as necessary.

            L 1 Reply Last reply
            0
            • D David Crow

              For some strange reason, the temporay files .NCB, .CLW, and .APS need to be deleted every so often, letting VC++ rebuild them as necessary.

              L Offline
              L Offline
              LittleYellowBird
              wrote on last edited by
              #6

              Thanks for the help, I ran my project in the morning and they had all gone again, and when I looked closely not all of my classes had come back. But I tried deleting those files and they are all there now! Cheers! Many Thanks, Ali

              1 Reply Last reply
              0
              • H Hari Krishnan Noida

                Hi, The .ncb file contains ClassView browser information. I believe, some of your .ncb(if you're using multiple projects) file permission may have changed. That is the cause. To check that, create a sample program and change .ncb file to read-only. Now you reload the project, you will not be able to see any classes in the classview. Hope this helps, if not better you move all your .ncb files to some other location. so that your .dsw/.dsp will recreate your class view again. regards ~Hari~

                L Offline
                L Offline
                LittleYellowBird
                wrote on last edited by
                #7

                Thanks for the help, I ran my project in the morning and they had all gone again, and when I looked closely not all of my classes had come back. But I tried deleting that file and they are all there now! Cheers! Many Thanks, Ali

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups