Hallo to all,

I'm newbie and have a question.
I tried to invoke the CopyMemory() or MoveMemory() from Import Library, but it failed. MASM32 don't find it.
What kind of Inc & Lib file do I have to use? I cound not find import inc or lib.
Where can I get this?


Sorry for my bad english.




Nordwind64
Posted on 2001-09-14 09:32:30 by Nordwind64
There is the MemCopy function provided in the MASM32 lib.
You'll need to include "masm32.inc" and includelib "masm32.lib".

The function is rep movsd based, which is the fastest method (bar movq which is an MMX instruction) when moving more than 512k on a PIII (Celerons may be less).

If you are planning on moving less, or can use an MMX register it may be better to "roll your own" so to speak.

Mirno
Posted on 2001-09-14 09:56:24 by Mirno
Can MemCopy() write to graphic memory as CopyMemory() can ? It should be CopyMemory() or MoveMemory()...

Who can help ???
Posted on 2001-09-14 14:04:25 by Nordwind64
You will have to blame Microsoft for this one, their documentation uses contracted names for the actual functions.

kernel32.inc

RtlFillMemory PROTO :DWORD,:DWORD,:DWORD
RtlMoveMemory PROTO :DWORD,:DWORD,:DWORD
RtlUnwind PROTO :DWORD,:DWORD,:DWORD,:DWORD
RtlZeroMemory PROTO :DWORD,:DWORD

Regards,

hutch@pbq.com.au

PS:Use the copy memory function in the MASM32 library, its a lot faster.
Posted on 2001-09-14 20:56:48 by hutch--
Thank you very much. But somtimes I have to copy into graphic memory. Normal copy-functions can't do that.

Norwind64
Posted on 2001-09-15 02:44:07 by Nordwind64