function pointers with different calling conventions
Regan Heath
regan at netmail.co.nz
Thu Nov 1 04:40:50 PDT 2007
Lutger wrote:
> 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.
Try:
extern(Windows) int function() fPointer;
writefln(typeof(fPointer)) will hopefully output "int(Windows *)()"
I don't have a DMD handy to test it so this is a guess.
Regan
More information about the Digitalmars-d-learn
mailing list