Click here to Skip to main content
15,896,201 members
Articles / Programming Languages / ASM

Inside Calling Conventions

Rate me:
Please Sign up or sign in to vote.
3.26/5 (17 votes)
1 Feb 2005CPOL6 min read 48.9K   334   33  
Difference between different the calling conventions.
#include <stdio.h>

int __stdcall Function(int a, int b, int c)
{
	return a + b -c;
}

void __cdecl main()
{
	int r = Function(1, 2, 3);
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Technical Lead
India India
Hi I am Sachin Sangoi from Mumbai. Working in VC++ from 9 years (From July 2004).Completed BE Electronics + PG CDAC + MBA Finance.
I would like to thanx Mr Sameer Vasani, my team and my friend Rahul bhamre from whom i learnt a lot.They have been a great help.
Thanx 2 all my friends especially Rahul B, Sandeep C, Sandeep K, Govind P, Rohit P, Pratik P who have all been there when needed.

Happy Coding Smile | :)

Comments and Discussions