Re: [Dev-C++] Some help with ported C ansi code
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Abhijit S. <mu...@gm...> - 2002-07-25 17:59:58
|
> > Hi all, > > > > I ported all my code from DJGPP to Dev-C++ in ansi C format. The > > compilation is ok now. > > But when I run it the program crash near at the end. > > > > I use some like 8 files to read or write in a form > > FILE *fp1 ...*fp8; > > > > fp1 = fopen(archme,"r"); > > fp2 = fopen(archme,"w"); > > > Guh! Now i noticed. You cannot do that in horizontal mode! I mean you > must not fopen() the same file more than once! You can do a shared open in Windows using CreateFile()... |