How can i conver string with hex number to DWORD?
Can some one help me?
Posted on 2001-12-15 01:13:36 by NetGerty

From the help for Masm32LIB:


htodw proc uses ebx ecx edi edx esi String:DWORD

htodw receives as its parameter, the address of a zero terminated string containing hex characters and returns the value as a DWORD in eax.

Posted on 2001-12-15 01:39:09 by farrier
And Can you give ne an example?(i'm trying but it not work's!)
Posted on 2001-12-15 02:15:18 by NetGerty
Try this: invoke htodw,ADDR szMyData
the double word value returned in eax register.
Btw, define MyData in .data section e.g. szMydata db "Hello",0

best regards,

Posted on 2001-12-15 14:24:29 by czDrillard