News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Persoon.ID to String

Started by Lupo1989, March 23, 2009, 05:39:21 PM

Previous topic - Next topic

Lupo1989

hello MASM32 guys,

I am new with ASM, I read a lot of examples and made some scripts already.
Untile now I have to make Persoon.ID to a String, but i dont know how.
Can someone give me any advises? I already watched in google and i cant find the anser

my scritp is something like this:

.486
.model flat, stdcall
option casemap: none

include \masm32\include\windows.inc
include \masm32\include\kernel32.inc
include \masm32\include\user32.inc
include \masm32\include\masm32.inc

includelib \masm32\lib\user32.lib
includelib \masm32\lib\kernel32.lib
includelib \masm32\lib\masm32.lib

PERSOON STRUCT
ID DWORD ?

Move dd PERSOON_Move
PERSOON ENDS

.data
Persoon PERSOON <>

MenuName db "Structure Example", 0
.code
start:
mov eax, 0
mov Persoon.ID, eax

push Persoon.ID ; <----- Over here I have to make it a string, but how???
push offset MenuName
call Persoon.Move
ret

PERSOON_Move proc varMenuName:DWORD, varMessage:DWORD
invoke MessageBoxA, NULL, varMessage, varMenuName, MB_OK
ret
PERSOON_Move endp

end start


PS: sorry for my bad English I Come from Holland

Greeze, Lupo1989

ToutEnMasm


It's a dword and you want see it as text ?

Quote
.data

szPersonId db 20 dup (0)

.code
.
.
        invoke dwtoa,Person.Id,addr szPersonId


The dwtoa function is in the masm32.lib,then use szPersonId in the messagebox



Lupo1989