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
Posted on 2003-02-15 05:44:41 by Jnrz
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

Posted on 2003-02-15 06:01:56 by BubbaFate
yes i have tried that but it does not work.
well it work but when I have this

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
Posted on 2003-02-15 06:14:18 by Jnrz
those two buffers are the same thing as far as memory is concerned... are you sure your getclassname function is working?
Posted on 2003-02-15 06:19:04 by BubbaFate
yes, GetClassName is working, after calling that function,
I post a message to the vb application.
Posted on 2003-02-15 06:48:47 by Jnrz