INFO: ???????? ?????? ????? ????? fflush() ??? ?? ???? ???????

?????? ????????? ?????? ?????????
???? ???????: 70784 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

??????

????? ?????? fflush() ??? ?????? ?????? ??? ???????? ??? ??? ??? ???????? ??? ????? ?????. ?? ???? ??? ???? ??? ????? ????? ??? ???? ???? ?? ?????? ??? I/O [??? ???? ??????? fopen() fclose() ? fwrite() ? ???]. ??????? ?????? ??? ??? ?????? ????? ??????? ?????? [?? ?????? setvbuf()] ?? ?????? ??????? I/O ??? ??????? ??????? ????? ?? ??? [???? open() ? close() ? write() ? ???]. ?????? ??? ??????? ??? I/O ??????? ????????. ??? ???? ?? ???? ????? ?????? ???? ??? ????? ???????? ???????? ?? ???? "???." ?????? ?????? ????? 512 ???? ???? ??????? ???? ???? ??? ?? ?????? setvbuf().

????? fflush() ??? ??????? ???? ???? ?? ???? ???? fclose() ? ??? ????? ???????? ?? ????? ??? ????? ?????? ??????? ???? ??? write(). ????? ???? ??? ????? ????? ???? ?????? ?????? ??? ????? ?????? ?????? ??? ?? ????? ??? ?????? ?????? ?????? ??? ???. ???? ??? ???? ????? ???? write() ?????.

?? ???? ??? ?? ????? ????? ??? ???? ? ??????? ????? ?????? rectify ????? (??? ??? ?? ???????? ????? ??? ???? ???????, ????? ???????, ????? ??? ???? ?????) ??? ?? ??? ?????? ???????. ??? ???? ??????:
IOStatus = FAIL;
while(IOStatus == FAIL)
{
   fflush(FilePtr);
   IOStatus = CriticalErrorChk();
}
???? ? ???? fflush() ????? ?????? ?? ??? ????? ?????? ?? ???????? ? ??? ????? ???????? ???????? ???? ???? "." setvbuf() ??????? ?? ??????? - ????? _IONBF ??? ??? ??????? ?? ???? unbuffering ????? ??? ???? ?????/????? ????? ????.

???? ?? ??? ?????? fflush() ?????? ?? ??????? ANSI. ??? ?? ????? ?????? ANSI ?????? fflush() EOF ??????? ?? ???? ???? ????? ?? ??? ?????.

??? fflush() ?? ??????? Microsoft C/C++ 7.0 ? Visual C++ ???? ????????? ???????:
??????: ??? ???? fflush EOF ? ???????? ???? ???? ???? ?? ????? ?????. ??? ????? ??? ????? ??????? ???? ?????? ????? ????? ??????? ?????? ????? ?? ?????? setvbuf ?? ??????? ??????? I/O ??? ??????? ??????? ??? _open ? _close _write ????? ?? ????? ????? I/O.

???????

???? ???????: 70784 - ????? ??? ??????: 18/????/1424 - ??????: 3.0
????? ???
  • The C Run-Time (CRT), ????? ?????? ??:
    • Microsoft Visual C++ 1.0 Professional Edition
    • Microsoft Visual C++ 1.5 Professional Edition
    • Microsoft Visual C++ 1.0 Professional Edition
    • Microsoft Visual C++ 2.0 Professional Edition
    • Microsoft Visual C++ 2.1
    • Microsoft Visual C++ 4.0 Standard Edition
    • Microsoft Visual C++ 5.0 Standard Edition
    • Microsoft Visual C++ 6.0 Service Pack 5
????? ??????: 
kbmt kbcrt kbinfo KB70784 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????70784
????? ??????? ?? ????? ???? ?? ????? ???????
?? ????? ????? ?????? ???? ???? ???? ??? ??????? ??? ?? ? ?? ??? ??????? Microsoft ??? ????? ??? ??????? ????? ?????? ?????

????? ???????

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com