The only way to get a string to be moved to eax is with esi, but I don't want to use esi, so what do I do?

invoke GlobalAlloc,GPTR,100
mov dword , eax

That doesn't work,
Posted on 2003-02-28 14:17:19 by CyberGuy

offset_of_string dd 0
invoke GlobalAlloc,GPTR,100 ; this string is 100 bytes max ...warning!
mov [offset_of_string], eax

; copy this string to another location for example
mov esi,[offset_of_string]
mov edi,offset other_location
; should use invoke Str_Len,esi to get this length
mov ecx,[length_of_string]
rep movsb

Please excuse me for not translating it to FASM style... i am sure you can do it better yourself...
as i am not so much used with FASM syntax style... yet :D
Posted on 2003-02-28 15:42:21 by BogdanOntanu
Thanks, I'll try that.
Posted on 2003-03-01 12:26:42 by CyberGuy