Results of Calling Example

Microsoft Specific

__cdecl

The C decorated function name is _MyFunc.

Diagram showing the stack and registers for the CDECL calling convention.
The __cdecl calling convention

__stdcall and thiscall

The C decorated name (__stdcall) is _MyFunc@20. The C++ decorated name is implementation-specific.

Diagram showing the stack and registers for the S T D call and this call calling conventions.
The __stdcall and thiscall calling conventions

__fastcall

The C decorated name (__fastcall) is @MyFunc@20. The C++ decorated name is implementation-specific.

Diagram showing the stack and registers for the fast call calling convention.
The __fastcall calling convention

END Microsoft Specific

See also

Calling Example: Function Prototype and Call