Some asm help for the 'thiscall' calling convention?

flamencofantasy via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Jul 13 15:09:05 PDT 2016


On Wednesday, 13 July 2016 at 20:39:00 UTC, Adam Sansier wrote:
> 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.

You revived this thread solely to insert a personal attack???


More information about the Digitalmars-d-learn mailing list