The damned value is on EAX coming over but I get crap. I know nothing about MASM. What do I need to to do to have the val pass?
------------------
PROGRAM
MAP
MODULE('masmtest.obj')
TestProc(ULONG),NAME('testproc')
END
!CWMessageBox PROCEDURE
END
Mval CSTRING(256)
CODE
Mval = 'XXX'
TestProc(ADDRESS(Mval))
------------------
And in the MASM obj
------------------
.486
.model flat, syscall ;32 bit memory model - syscall kills name mangling
MessageBoxA PROTO WORD,WORD,WORD,WORD
MB_OK equ 0h
NULL equ 0h
INCLUDELIB user32.lib
.data
MbTitle DB "Linking to MASM32 Assembler .obj files",0
.code
testproc PROC TheStuffWORD
invoke MessageBoxA,NULL,addr TheStuff,addr MbTitle,MB_OK
ret
testproc ENDP
END
------------------------
------------------
PROGRAM
MAP
MODULE('masmtest.obj')
TestProc(ULONG),NAME('testproc')
END
!CWMessageBox PROCEDURE
END
Mval CSTRING(256)
CODE
Mval = 'XXX'
TestProc(ADDRESS(Mval))
------------------
And in the MASM obj
------------------
.486
.model flat, syscall ;32 bit memory model - syscall kills name mangling
MessageBoxA PROTO WORD,WORD,WORD,WORD
MB_OK equ 0h
NULL equ 0h
INCLUDELIB user32.lib
.data
MbTitle DB "Linking to MASM32 Assembler .obj files",0
.code
testproc PROC TheStuffWORD
invoke MessageBoxA,NULL,addr TheStuff,addr MbTitle,MB_OK
ret
testproc ENDP
END
------------------------