Thread: Can not open project anymore in Visual Studio

  1. #1
    Registered User
    Join Date
    Feb 2010
    Posts
    44

    Can not open project anymore in Visual Studio

    Hi,

    I don't know if it is really appropriate to ask questions about a specific compiler, but I actually hope somebody has a simple answer to this problem.

    I made a C project in Visual Studio 2008 Express on a computer (Windows XP) a few years ago and copied the Projects folder to another computer (Windows 7) which has Visual Studio 2008 Express installed as well. However, I can not open the files anymore. I get the error: "myfile.c. Cannot open file." That's all I get. No more information.
    If I look at 'Properties' for the file (right-click) I get the error: "The operation could not be completed. Unspecified error."

    I've googled this problem and I don't find an answer. Anybody knows what is going on?

    Best regards, Michiel.

  2. #2
    SAMARAS std10093's Avatar
    Join Date
    Jan 2011
    Location
    Nice, France
    Posts
    2,694
    I do not know the answer but what i would do if i were you is to create a new project with the same name as the old one,create all the files with the same names as the old ones and then copy paste the code into the new files .

    Maybe an error with rights is hiding there

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Assuming you've got backup copies, I would suggest you delete everything in the new project tree, except for the following
    - the .sln file(s)
    - all the source / header / resource files which you specifically created.

    That is, get rid of all the compiler and IDE generated cruft.
    It will all get generated again when you restart the IDE and rebuild.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  4. #4
    Registered User
    Join Date
    Feb 2010
    Posts
    44
    Hi,

    thanks for the suggestions.
    I thought of this as well so when I tried to locate the .c files I couldn't find it. Apparently I didn't separately save the .c files back then.
    Stupid, so I guess I'll have to take my loss. I was kinda hoping that this was a general error for opening VS2008 express projects on a Windows 7
    machine which could be resolved by changing some settings. Too bad.

    Michiel.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Creating and Empty MFC project in Visual Studio?
    By Swerve in forum Windows Programming
    Replies: 7
    Last Post: 11-01-2008, 04:43 PM
  2. Build a visual studio project from console
    By spank in forum Tech Board
    Replies: 1
    Last Post: 11-29-2007, 07:53 AM
  3. visual studio 6 and visual studio.net difference
    By gemini_shooter in forum Tech Board
    Replies: 5
    Last Post: 02-04-2006, 01:32 AM
  4. Visual Studio Project File Converter?
    By Geolingo in forum C++ Programming
    Replies: 2
    Last Post: 10-02-2003, 08:01 PM
  5. Port C++ .NET Project back C++ 6.0 :: Visual Studio
    By kuphryn in forum Windows Programming
    Replies: 2
    Last Post: 11-17-2002, 01:11 PM