Some asm help for the 'thiscall' calling convention?

Adam Sansier via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Jul 13 13:39:00 PDT 2016


On Sunday, 24 April 2011 at 22:09:24 UTC, Kagamin wrote:
> Andrej Mitrovic Wrote:
>
>> But trying to use functions which take parameters will fail 
>> with an access violation, probably because D uses stdcall for 
>> COM methods, while these ASIO COM methods need to be called 
>> with 'thiscall' convention.
>
> COM uses stdcall convention. Everything else is not COM.

Ignore the fool, mark your functions extern(C++) and it will 
work. IUnknown uses extern(Windows) while ASIO uses extern(C++) 
for some reason. It may not be COM in the eyes of God... I mean 
Kagamin, though.


More information about the Digitalmars-d-learn mailing list