Visual Studio 2005 + Offline

This is a discussion on Visual Studio 2005 + Offline within the C++ Programming forums, part of the General Programming Boards category; I have a C++ project developed under visual studio 2005 and on a network drive. When I am connected to ...

  1. #1
    Registered User
    Join Date
    Sep 2007
    Posts
    4

    Visual Studio 2005 + Offline

    I have a C++ project developed under visual studio 2005 and on a network drive. When I am connected to the network drive, I can compile and run my project. When I am offline and have all the project files available offline using "make available offline" feature of windows XP, I get several C1083 errors about files not being found. I can see the files and open the files in Visual Studio. Has anyone else faced this problem before? If yes, what is the best way to fix this?

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,341
    At a guess, use the 'subst' command line command to map the network drive letter to the directory where the offline files are stored.
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Registered User
    Join Date
    Sep 2007
    Posts
    4
    I tried with 'subst'. It is still giving the same error messages.

  4. #4
    Registered User
    Join Date
    Sep 2007
    Posts
    4
    Could anyone please help me with this?

  5. #5
    Registered User hk_mp5kpdw's Avatar
    Join Date
    Jan 2002
    Location
    Northern Virginia/Washington DC Metropolitan Area
    Posts
    3,788
    Have you applied the patch to VS 2005?
    "Owners of dogs will have noticed that, if you provide them with food and water and shelter and affection, they will think you are god. Whereas owners of cats are compelled to realize that, if you provide them with food and water and shelter and affection, they draw the conclusion that they are gods."
    -Christopher Hitchens

  6. #6
    Registered User
    Join Date
    Oct 2001
    Posts
    2,129
    if you can't find help here, try the msdn forums.

  7. #7
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,341
    Dunno, the amount of information on exactly what was tried is non existent.

    Like for example, an actual path on the network drive,
    The include search directories listed in the IDE,
    The directory where the local copies are stored,
    The 'subst' command entered.

    If, for example the real network file is
    v:\path\to\lib\mylib.h
    and the search path in the IDE is
    v:\path\to\lib

    If you copy the files to say
    c:\local\vdrive\path\to\lib\mylib.h
    then
    subst v: c:\local\vdrive
    should be the thing

    ie,
    more v:\path\to\lib\mylib.h

    should work in both cases. If it doesn't, you're doing it wrong.
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  8. #8
    Registered User
    Join Date
    Sep 2007
    Posts
    4
    Thanks for all the help. It seems the patch did the trick.

    I did learn several other concepts from the replies. Thanks to everyone, especially hk_mp5kpdw who suggested the application of SP1.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. more then 100errors in header
    By hallo007 in forum Windows Programming
    Replies: 20
    Last Post: 05-13-2007, 08:26 AM
  2. We Got _DEBUG Errors
    By Tonto in forum Windows Programming
    Replies: 5
    Last Post: 12-22-2006, 04:45 PM
  3. C++ std routines
    By siavoshkc in forum C++ Programming
    Replies: 33
    Last Post: 07-28-2006, 12:13 AM
  4. load gif into program
    By willc0de4food in forum Windows Programming
    Replies: 14
    Last Post: 01-11-2006, 09:43 AM
  5. Learning OpenGL
    By HQSneaker in forum C++ Programming
    Replies: 7
    Last Post: 08-06-2004, 08:57 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21