Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Weird Computer Glitch, any ideas?
Index -> Off Topic
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
saltpro15




PostPosted: Wed Jan 14, 2009 4:44 pm   Post subject: Weird Computer Glitch, any ideas?

Hello all, for some reasons my Computer no longer knows how to navigate directories :S While programming with C++, the code is perfect, the path is specified, it works fine on my laptop, but on the tower computer, it just says "Error, file not found", no matter what language I'm using. Any ideas what could cause this or how to fix it?
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Wed Jan 14, 2009 5:40 pm   Post subject: Re: Weird Computer Glitch, any ideas?

saltpro15 @ Wed Jan 14, 2009 4:44 pm wrote:
the path is specified

could it be that on a different computer, the file (the one not found) is in a different location?
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
saltpro15




PostPosted: Wed Jan 14, 2009 6:03 pm   Post subject: RE:Weird Computer Glitch, any ideas?

I don't think so, when I downloaded Visual C++ 2008 its installed in program files on both computers, the path should be the same. It has the same error for Turing too, when I write I/0 files it says "file not found" for the .txt input file, I made sure they're named properly and in the proper folders, its weird
Tony




PostPosted: Wed Jan 14, 2009 6:14 pm   Post subject: Re: RE:Weird Computer Glitch, any ideas?

saltpro15 @ Wed Jan 14, 2009 6:03 pm wrote:
I don't think so, when I downloaded Visual C++ 2008 its installed in program files on both computers, the path should be the same.

Not necessarily. Or rather, the the system PATH variable might not have been set the same. Though now I'm a little suspicious of how you are looking for the files. Can you read a file from the current folder of the application?
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
saltpro15




PostPosted: Wed Jan 14, 2009 6:32 pm   Post subject: Re: Weird Computer Glitch, any ideas?

Quote:
Can you read a file from the current folder of the application?


what do you mean?
Tony




PostPosted: Wed Jan 14, 2009 7:07 pm   Post subject: RE:Weird Computer Glitch, any ideas?

If I take your executable and place it into some folder, would it be able to read what else is in that folder?
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Clayton




PostPosted: Wed Jan 14, 2009 9:29 pm   Post subject: RE:Weird Computer Glitch, any ideas?

Google relative and absolute directories. My guess is that is your problem.
Display posts from previous:   
   Index -> Off Topic
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 7 Posts ]
Jump to:   


Style:  
Search: