J
Janos Makadi
Hi,
I have a very interesting problem.
I wrote a little code which linked against an externel library. I have
the debug, and the release version of the ext. lib. One library function
opens a file which is in the same path as the executable. I copyed the
file into the Debug, and the Release directoryes too. Starting the
program directly from the folders (Debug, Release) causes no problem.
When I start it with CTRL+F5, in any configuration it failed to open the
file. When I used the debugger to see what's wrong, I found the lib's
fopen fails.
The code looks like this:
FILE* file = fopen("filename without the full path", "r");
If I use the full path the same thing happens.
I use Visual Studio .Net 2003.
Is there any difference running the program inside or outside the IDE?
What could be the problem?
THX
I have a very interesting problem.
I wrote a little code which linked against an externel library. I have
the debug, and the release version of the ext. lib. One library function
opens a file which is in the same path as the executable. I copyed the
file into the Debug, and the Release directoryes too. Starting the
program directly from the folders (Debug, Release) causes no problem.
When I start it with CTRL+F5, in any configuration it failed to open the
file. When I used the debugger to see what's wrong, I found the lib's
fopen fails.
The code looks like this:
FILE* file = fopen("filename without the full path", "r");
If I use the full path the same thing happens.
I use Visual Studio .Net 2003.
Is there any difference running the program inside or outside the IDE?
What could be the problem?
THX