07-25-2006 01:15 AM
p_to_file = fopen (file, "ab");
if(p_to_file != 0)
{
state = fseek (p_to_file, pos, SEEK_SET); //Here it says that the Argument must be an open stream
fwrite (&value, sizeof(double), 1, p_to_file);
fclose (p_to_file);
}
07-25-2006 03:23 AM
07-25-2006 04:13 AM
I tried it, but the error stays.
I don´t understand, why the exe runs.
Only when I debug my app. , I get the error.
Could it be, that my program is too large? I´ve over 7000 lines of code!
07-25-2006 04:18 AM
Do you have write permission on the file? Is it open for access by another program at the same time?
JR
07-25-2006 04:33 AM
I have write permission. No other program can open the file, when it´s already open.
I think it runs now. I renamed the file-pointer and now it works. But I don´t understand why!!!