function pointers with different calling conventions
Jarrett Billingsley
kb3ctd2 at yahoo.com
Thu Nov 1 05:24:32 PDT 2007
"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..
More information about the Digitalmars-d-learn
mailing list