Sign in Join

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

Mailing lists / fpc-pascal / 2009-06

thiscall

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

dmitry boyarintsev

hello!

does FPC supports thiscall convention, at least for windows COM Interfaces? http://en.wikipedia.org/wiki/X86_calling_conventions#thiscall

Yes, i know, microsoft states that COM intefaces should use safecall convention. But there's at least 2 interfaces, i know, that're using thiscall, instead of safecall (Microsoft headers bug).
I have a delphi code that hacks and constructs a proper thiscall using assembler. But i'd prefer not to use hacks.

thanks,
dmitry