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. Arghh! Visual C++ deletes project files!

Arghh! Visual C++ deletes project files!

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpquestion
9 Posts 6 Posters 1 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.
  • N Offline
    N Offline
    NeverFall
    wrote on last edited by
    #1

    Oh God, I was over 2000 lines in my project then I saved it then poof! My cpp files is gone! Is this a bug or something? Can it be fixed?

    T M P 3 Replies Last reply
    0
    • N NeverFall

      Oh God, I was over 2000 lines in my project then I saved it then poof! My cpp files is gone! Is this a bug or something? Can it be fixed?

      T Offline
      T Offline
      Tom Archer
      wrote on last edited by
      #2

      I've been using VC++ since version 1 (c. 1994) and have never seen the compiler delete a cpp file. Even if you mean the editor (Visual Studio), I've never seen it delete a file either. Are you sure you just didn't save it some place other than the project dir? Cheers, Tom Archer - Archer Consulting Group
      "Eat your brussel sprouts, Junior. There are starving Chinese children American programmers that would kill for that food!"

      N 1 Reply Last reply
      0
      • T Tom Archer

        I've been using VC++ since version 1 (c. 1994) and have never seen the compiler delete a cpp file. Even if you mean the editor (Visual Studio), I've never seen it delete a file either. Are you sure you just didn't save it some place other than the project dir? Cheers, Tom Archer - Archer Consulting Group
        "Eat your brussel sprouts, Junior. There are starving Chinese children American programmers that would kill for that food!"

        N Offline
        N Offline
        NeverFall
        wrote on last edited by
        #3

        Yep, the file is in the same directory as the project. This is bad. It occured when I click Save. I closed the workspace, reopened it then the cpp file is gone :( I even looked for it in the project dir and its not there anymore (I kept the project directory window open, and it was still there until I refreshed it after I saved the project) EDIT: After a few minutes of searching, I found one with situation similar to mine: http://www.codeguru.com/forum/showthread.php?t=332727&page=1 Another one: http://groups-beta.google.com/group/microsoft.public.vc.ide\_general/browse\_frm/thread/c48c6d2cfeaabba1/934105cfbac39cff?hl=en&lr=&ie=UTF-8&oe=UTF-8&rnum=2&prev=/groups%3Fq%3D%2522Cannot%2Bsave%2Bfile%2522%2B%2522the%2Bfile%2Bmay%2Bbe%2Bin%2Buse%2Bby%2Banother%2Bapplication%2522%26hl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26sa%3DN%26tab%3Dwg#934105cfbac39cff

        T 1 Reply Last reply
        0
        • N NeverFall

          Yep, the file is in the same directory as the project. This is bad. It occured when I click Save. I closed the workspace, reopened it then the cpp file is gone :( I even looked for it in the project dir and its not there anymore (I kept the project directory window open, and it was still there until I refreshed it after I saved the project) EDIT: After a few minutes of searching, I found one with situation similar to mine: http://www.codeguru.com/forum/showthread.php?t=332727&page=1 Another one: http://groups-beta.google.com/group/microsoft.public.vc.ide\_general/browse\_frm/thread/c48c6d2cfeaabba1/934105cfbac39cff?hl=en&lr=&ie=UTF-8&oe=UTF-8&rnum=2&prev=/groups%3Fq%3D%2522Cannot%2Bsave%2Bfile%2522%2B%2522the%2Bfile%2Bmay%2Bbe%2Bin%2Buse%2Bby%2Banother%2Bapplication%2522%26hl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26sa%3DN%26tab%3Dwg#934105cfbac39cff

          T Offline
          T Offline
          Tom Archer
          wrote on last edited by
          #4

          Wow! Good thing I run AVG instead of Norton! :~ Cheers, Tom Archer - Archer Consulting Group
          "So look up ahead at times to come, despair is not for us. We have a world and more to see, while this remains behind." - James N. Rowe

          1 Reply Last reply
          0
          • N NeverFall

            Oh God, I was over 2000 lines in my project then I saved it then poof! My cpp files is gone! Is this a bug or something? Can it be fixed?

            M Offline
            M Offline
            Mike Nordell
            wrote on last edited by
            #5

            If you are referring to VC 7.0 (or maybe even 7.1?), this is a known "problem". For more info/verifications, you could google some MS newsgroups (usenet news). Obviously it can be fixed - but only by the ones destroying your data in the first place.

            N 1 Reply Last reply
            0
            • M Mike Nordell

              If you are referring to VC 7.0 (or maybe even 7.1?), this is a known "problem". For more info/verifications, you could google some MS newsgroups (usenet news). Obviously it can be fixed - but only by the ones destroying your data in the first place.

              N Offline
              N Offline
              NeverFall
              wrote on last edited by
              #6

              Hmm, I'm using VC 6. And yah, I looked at other boards and they have the problem too. Stupid Micro$oft <_<

              N 1 Reply Last reply
              0
              • N NeverFall

                Oh God, I was over 2000 lines in my project then I saved it then poof! My cpp files is gone! Is this a bug or something? Can it be fixed?

                P Offline
                P Offline
                Prakash Nadar
                wrote on last edited by
                #7

                yes, it has happend to me many times, after saving the file i try to compile the project, the compiler complains that the file is missing. I know this behaviour so i just do a save all again and then compile again. yes, in the past i have lost a file like this, but lucky that i use VSS.


                -prakash

                G 1 Reply Last reply
                0
                • N NeverFall

                  Hmm, I'm using VC 6. And yah, I looked at other boards and they have the problem too. Stupid Micro$oft <_<

                  N Offline
                  N Offline
                  namaskaaram
                  wrote on last edited by
                  #8

                  yup.....it happens for me also once a while!:sigh:just compile and execute ur project and it should be back! "faith, hope, love remain, these three.....; but the greatest of these is love" -1 Corinthians 13:13

                  1 Reply Last reply
                  0
                  • P Prakash Nadar

                    yes, it has happend to me many times, after saving the file i try to compile the project, the compiler complains that the file is missing. I know this behaviour so i just do a save all again and then compile again. yes, in the past i have lost a file like this, but lucky that i use VSS.


                    -prakash

                    G Offline
                    G Offline
                    g3e
                    wrote on last edited by
                    #9

                    I use VC5 on XP machine and have faced the problem of the cpp file getting deleted. I had to rewrite the whole thing.:doh:

                    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