Reputation: 76537
According to the online help:
ms-help://embarcadero.rs_xe7/rad/Fundamental_Syntactic_Elements.html#Directives
- winapi is the same as stdcall for Delphi for Win32; 64-bit is different
I always thought that Win64 has only one calling convention. So how can stdcall
and winapi
have different meanings on x64?
Upvotes: 1
Views: 850
Reputation: 612794
64-bit is different.
That's badly written, and who knows what the author meant.
I always thought that Win64 has only one calling convention.
You are correct. There really is only one calling convention on x64 Windows. So these directives are essentially ignored on x64.
On x86, winapi
and stdcall
happen mean the same thing. But there are other distinct calling conventions on x86 such as cdecl
and register
.
Upvotes: 3