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
NetGerty,

From the help for Masm32LIB:

htodw

htodw proc uses ebx ecx edi edx esi String:DWORD

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

farrier
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,

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