Re: Sending/returning values to MFC/Microsoft functions
- From: spamtrap@xxxxxxxxxx
- Date: 18 Oct 2006 15:08:33 -0700
Trev wrote:
Do I have to pass them in in reverse order?
You have to *push* them in reverse order, so that they end up on the
stack in the *correct* order:
YoureSoBlobby(int i1, int i2, int i3);
push i3
push i2
push i1
call YoureSoBlobby
Don't forget that (in IA-32) you can push constants or variables
directly, you don't have to copy them into a register first.
Richard.
http://www.rtrussell.co.uk/
.
- References:
- Sending/returning values to MFC/Microsoft functions
- From: Trev
- Re: Sending/returning values to MFC/Microsoft functions
- From: Tim Roberts
- Re: Sending/returning values to MFC/Microsoft functions
- From: Trev
- Sending/returning values to MFC/Microsoft functions
- Prev by Date: Re: [Clax86list] trouble compiling instruction: console.puts(...
- Next by Date: how can I see the result of the program?
- Previous by thread: Re: Sending/returning values to MFC/Microsoft functions
- Next by thread: OllyDbg used to debug VC2005 applications?
- Index(es):
Relevant Pages
|