hello,
I am trying to pass a variable from masm to visual basic
i have this:
Buffer db 256 dup (0)
invoke GetClassName, eax, ADDR Buffer, 256
and I am trying to pass Buffer to VB, and I cant do it right
someone knows how ?
Thank you
PS: if there any MASM Spanish help file for a friend that does not undestand English
Thank you
I am trying to pass a variable from masm to visual basic
i have this:
Buffer db 256 dup (0)
invoke GetClassName, eax, ADDR Buffer, 256
and I am trying to pass Buffer to VB, and I cant do it right
someone knows how ?
Thank you
PS: if there any MASM Spanish help file for a friend that does not undestand English
Thank you
If the VB application is calling your masm function and you want to return the address of the buffer just do this...
lea eax, Buffer
ret
yes i have tried that but it does not work.
well it work but when I have this
that way, it works.
but when I have buffer like this:
it doesnt
thank you
well it work but when I have this
.code
Buffer db "notepad",0
.....
.....
lea eax, Buffer
that way, it works.
but when I have buffer like this:
Buffer db 256 dup (0)
it doesnt
thank you
those two buffers are the same thing as far as memory is concerned... are you sure your getclassname function is working?
yes, GetClassName is working, after calling that function,
I post a message to the vb application.
I post a message to the vb application.