Main proc hInst:DWORD
LOCAL answer: WORD

invoke StdIn, addr answer, 128

invoke StdOut, addr answer
Main endp

This code is incorrect....right?

The variable answer is only allocated to a single word, but we are going to read in 128 bytes, a word being only 2 bytes. So I will have a memory problem. Am I correct on this?

Thanks again,
Posted on 2002-06-11 10:42:55 by gorshing

Posted on 2002-06-11 10:49:52 by Mirno
you would do this
LOCAL answer[128]:BYTE
Posted on 2002-06-11 10:54:40 by Kudos
Sorry, I've been looking where I got this code and found it here, ( sorry I thought that I found it on my computer )

Nan has made the corrections here ->
Posted on 2002-06-11 10:54:51 by gorshing