Re: File I/O using NASM in 32-bit mode
- From: "¬a\\/b" <al@xxx>
- Date: Fri, 07 Jul 2006 19:16:45 +0200
On Fri, 07 Jul 2006 18:08:08 +0200, "¬a\\/b" <al@xxx> wrote:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^when in windows 95 if i write in stdin
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaa<cntr-Z>"
and my buf in stdin is 4 chars
and in the end of prog i close(stdin);
when i start a new programs seems its stdin has "aaaaaaaaaaa"
so it is not flush
Can you give a more detailed example of how this happens? Also, are you
talking about the C FILE* stdin, or are you talking about the win32
STD_INPUT_HANDLE?
it seems in windows95 something like
char buf[10];
int len=4, var;
in = GetStdHandle( STD_INPUT_HANDLE )
if(in==-1) return 0;
WriteFile(in, buf, len, &var, 0);
CloseHandle(in);
better if ReadFile(in, buf, len, &var, 0);
i hate remember names or procedure i think if all goes right i will
remember only printf* getline, "<<" ">>" ostream istream sstream and
all assembly
.
- References:
- Re: File I/O using NASM in 32-bit mode
- From: Frank Kotler
- Re: File I/O using NASM in 32-bit mode
- From: Evenbit
- Re: File I/O using NASM in 32-bit mode
- From: ¬a\\/b
- Re: File I/O using NASM in 32-bit mode
- From: f0dder
- Re: File I/O using NASM in 32-bit mode
- From: ¬a\\/b
- Re: File I/O using NASM in 32-bit mode
- From: f0dder
- Re: File I/O using NASM in 32-bit mode
- From: ¬a\\/b
- Re: File I/O using NASM in 32-bit mode
- From: f0dder
- Re: File I/O using NASM in 32-bit mode
- From: ¬a\\/b
- Re: File I/O using NASM in 32-bit mode
- Prev by Date: Re: 16/32 processor operating mode
- Next by Date: Re: 16/32 processor operating mode
- Previous by thread: Re: File I/O using NASM in 32-bit mode
- Next by thread: Re: File I/O using NASM in 32-bit mode
- Index(es):
Relevant Pages
|
|