Weird Computer Glitch, any ideas?
Author |
Message |
saltpro15

|
Posted: 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

|
|
 |
Tony

|
Posted: 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? |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
 |
saltpro15

|
Posted: 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

|
Posted: 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? |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
 |
saltpro15

|
Posted: 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

|
Posted: 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? |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
 |
Clayton

|
Posted: 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. |
|
|
|
|
 |
|
|