pushing arguments in stdcall convention

This is a discussion on pushing arguments in stdcall convention within the C++ Programming forums, part of the General Programming Boards category; I saw a post here some time ago on how to push arguments into a __stdcall function in a variadic ...

  1. #1
    3735928559
    Join Date
    Mar 2008
    Location
    RTP
    Posts
    839

    pushing arguments in stdcall convention

    I saw a post here some time ago on how to push arguments into a __stdcall function in a variadic fashion using a small amount of asm. I have since tried multiple times to search for it to no avail. Can someone either provide a similar example or link?


    Thanks!

  2. #2
    'Allo, 'Allo, Allo
    Join Date
    Apr 2008
    Posts
    612
    From my MiniBasic interpreter. It pushes numArgs arguments of which lastArg is a pointer to the last one (since arguments are pushed from last to first), func is the function to call. If you're passing the correct number of arguments then there's no need to save the stack pointer as that code does.

  3. #3
    3735928559
    Join Date
    Mar 2008
    Location
    RTP
    Posts
    839
    word thx dude. looks about like what I was looking for.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. pushing of arguments into the stack?
    By sanddune008 in forum C Programming
    Replies: 41
    Last Post: 07-09-2009, 02:16 PM
  2. GradeInfo
    By kirksson in forum C Programming
    Replies: 23
    Last Post: 07-16-2008, 04:27 PM
  3. command line arguments
    By vurentjie in forum C Programming
    Replies: 3
    Last Post: 06-22-2008, 07:46 AM
  4. NULL arguments in a shell program
    By gregulator in forum C Programming
    Replies: 4
    Last Post: 04-15-2004, 11:48 AM
  5. registry, services & command line arguments.. ?
    By BrianK in forum Windows Programming
    Replies: 3
    Last Post: 03-04-2003, 02:11 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21