in Iczelion's Tutorials,there is :

invoke ReadFile,hFile,pMemory,MEMSIZE-1,addr SizeReadWrite.

But hMemory and addr SizeReadWrite are both addresses,the differences between them?

and Why are the size is MEMSIZE-1,not MEMSiZE?

Posted on 2005-07-12 03:15:02 by cc123
I assume he's reading a string? That would explain why "-1", since you need a byte for the NUL character.

"SizeReadWrite" is an output parameter, containing the amount of bytes actually read (check PlatformSDK).
Posted on 2005-07-12 03:44:30 by f0dder
cc123,

Just an advice, do post more descriptive thread names. It would help the visiters to the forums. They wouldn't need to read the thread to actually know the content of the thread - That's the reason for the thread name.
Posted on 2005-07-12 07:11:22 by roticv