Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2010-09

stdcall on win64?

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Bihar Anwar

stdcall calling convention is for Win32, right? E.g.

    function Test: HRESULT; {$IFDEF WIN32}stdcall;{$ENDIF}

By using $IFDEF like that, will the code also work in Win64?

Thanks in advance.

Reply by email

Florian Klämpfl
to Bihar Anwar
Bihar Anwar wrote 5 lines
stdcall calling convention is for Win32, right? E.g. function Test: HRESULT; {$IFDEF WIN32}stdcall;{$ENDIF} By using $IFDEF like that, will the code also work in Win64?

Win64 ignores all calling conventions and uses only the calling conventions from the abi defined by MS for Win64.

Reply by email

Bihar Anwar
to Florian Klämpfl

Thanks Florian. :-)

Earlier message 15 lines
----- Original Message ---- From: Florian Klämpfl To: FPC-Pascal users discussions Sent: Tue, September 7, 2010 2:01:31 AM Subject: Re: [fpc-pascal] stdcall on win64? Am 06.09.2010 18:27, schrieb Bihar Anwar: > stdcall calling convention is for Win32, right? E.g. > > function Test: HRESULT; {$IFDEF WIN32}stdcall;{$ENDIF} > > By using $IFDEF like that, will the code also work in Win64? Win64 ignores all calling conventions and uses only the calling conventions from the abi defined by MS for Win64.

Reply by email