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
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Losing Classes in VC6

Losing Classes in VC6

Scheduled Pinned Locked Moved C / C++ / MFC
csharphelpquestionworkspace
9 Posts 5 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.
  • J Offline
    J Offline
    Jawache
    wrote on last edited by
    #1

    Does anyone else have the problem that every now and again VC6 loses one of your classes. I just deleted a function and the class has disapeared from the Workspace. Its still included as part of the project and compiles fine?!?! This has happened before and by removng and adding the files again it came back up but this isn't happening now!!! Asim Hussain e: asim@jawache.net w: www.jawache.net

    J K 2 Replies Last reply
    0
    • J Jawache

      Does anyone else have the problem that every now and again VC6 loses one of your classes. I just deleted a function and the class has disapeared from the Workspace. Its still included as part of the project and compiles fine?!?! This has happened before and by removng and adding the files again it came back up but this isn't happening now!!! Asim Hussain e: asim@jawache.net w: www.jawache.net

      J Offline
      J Offline
      jhwurmbach
      wrote on last edited by
      #2

      This happens every now and then. Normaly, I close the Workspace, exit the VC++-IDE and delete the *.ncd, *.opt and *.position files that sit in the same directory like my *.dsw. After a restart of the IDE all is fine again.

      J A 2 Replies Last reply
      0
      • J jhwurmbach

        This happens every now and then. Normaly, I close the Workspace, exit the VC++-IDE and delete the *.ncd, *.opt and *.position files that sit in the same directory like my *.dsw. After a restart of the IDE all is fine again.

        J Offline
        J Offline
        Jawache
        wrote on last edited by
        #3

        Yeah that got it. But you lose all the folders and organisation etc.... cheers Asim Hussain e: asim@jawache.net w: www.jawache.net

        J 1 Reply Last reply
        0
        • J Jawache

          Yeah that got it. But you lose all the folders and organisation etc.... cheers Asim Hussain e: asim@jawache.net w: www.jawache.net

          J Offline
          J Offline
          jhwurmbach
          wrote on last edited by
          #4

          Jawache wrote: But you lose all the folders and organisation etc.... Huh? I still have my projects organisation, since that is contained in the *.dsp files. I never used the ClassViews context menu 'New Folder', but I always thought that it refers to actual filesystem-folders. Perhaps you can experiment with which of the files I mentioned really have to be deleted to help the IDE to recover?

          J 2 Replies Last reply
          0
          • J jhwurmbach

            Jawache wrote: But you lose all the folders and organisation etc.... Huh? I still have my projects organisation, since that is contained in the *.dsp files. I never used the ClassViews context menu 'New Folder', but I always thought that it refers to actual filesystem-folders. Perhaps you can experiment with which of the files I mentioned really have to be deleted to help the IDE to recover?

            J Offline
            J Offline
            Jawache
            wrote on last edited by
            #5

            jhwurmbach wrote: I never used the ClassViews context menu 'New Folder', but I always thought that it refers to actual filesystem-folders. No its just some virtual folders to help you organise your classes. Thats all i lose, wasn't must trouble remaking them again though. jhwurmbach wrote: Perhaps you can experiment with which of the files I mentioned really have to be deleted to help the IDE to recover? Will do, the next time it f*cks up. Asim Hussain e: asim@jawache.net w: www.jawache.net

            M 1 Reply Last reply
            0
            • J Jawache

              Does anyone else have the problem that every now and again VC6 loses one of your classes. I just deleted a function and the class has disapeared from the Workspace. Its still included as part of the project and compiles fine?!?! This has happened before and by removng and adding the files again it came back up but this isn't happening now!!! Asim Hussain e: asim@jawache.net w: www.jawache.net

              K Offline
              K Offline
              Koep
              wrote on last edited by
              #6

              In this case i make "Save All" and the classes are in the class tree again. Marco

              1 Reply Last reply
              0
              • J Jawache

                jhwurmbach wrote: I never used the ClassViews context menu 'New Folder', but I always thought that it refers to actual filesystem-folders. No its just some virtual folders to help you organise your classes. Thats all i lose, wasn't must trouble remaking them again though. jhwurmbach wrote: Perhaps you can experiment with which of the files I mentioned really have to be deleted to help the IDE to recover? Will do, the next time it f*cks up. Asim Hussain e: asim@jawache.net w: www.jawache.net

                M Offline
                M Offline
                Max Santos
                wrote on last edited by
                #7

                there is a addin to VS6 that backups your virtual folders, after delete those files you can restore it with the same addin here :http://www.codeproject.com/macro/restoreclassviewaddin.asp[^] Casa.Sapo.pt

                1 Reply Last reply
                0
                • J jhwurmbach

                  Jawache wrote: But you lose all the folders and organisation etc.... Huh? I still have my projects organisation, since that is contained in the *.dsp files. I never used the ClassViews context menu 'New Folder', but I always thought that it refers to actual filesystem-folders. Perhaps you can experiment with which of the files I mentioned really have to be deleted to help the IDE to recover?

                  J Offline
                  J Offline
                  Jawache
                  wrote on last edited by
                  #8

                  Hi, It happened again and i experimented. All you need to do is remove the .ncb file and not the .opt or .position files. Asim Hussain e: asim@jawache.net w: www.jawache.net

                  1 Reply Last reply
                  0
                  • J jhwurmbach

                    This happens every now and then. Normaly, I close the Workspace, exit the VC++-IDE and delete the *.ncd, *.opt and *.position files that sit in the same directory like my *.dsw. After a restart of the IDE all is fine again.

                    A Offline
                    A Offline
                    Anonymous
                    wrote on last edited by
                    #9

                    If a class disappears from the workspace pane, there is a very simple solution: Go to FileView, open the header file, and add any character to the class-name. I usually use a white-space :) You might have to save the file. The classwizard will notice you made a change to the file, and updates the class (showing it again in the workspace pane)

                    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