function pointers with different calling conventions
BCS
ao at pathlink.com
Thu Nov 1 09:40:20 PDT 2007
Reply to Jarrett,
> "Lutger" <lutger.blijdestijn at gmail.com> wrote in message
> news:fgccpu$3171$1 at digitalmars.com...
>
>> Does anybody know the syntax to declare a function pointer with the
>> windows calling convention?
>>
>> DMD suggests the type of such pointers is int(Windows *)() for
>> example, but this does not work.
>>
> I use:
>
> extern(Windows) alias int function() WinIntFunc;
> WinIntFunc f;
> It probably works the same as Regan's way..
>
not exactly the same (I think) as Regan's also effects the linkage of the
variable.
More information about the Digitalmars-d-learn
mailing list