Creating named tempfiles

Jonathan M Davis via Digitalmars-d digitalmars-d at puremagic.com
Wed Feb 4 01:41:43 PST 2015


On Wednesday, February 04, 2015 19:51:38 Daniel Murphy via Digitalmars-d wrote:
> "Jonathan M Davis via Digitalmars-d"  wrote in message
> news:mailman.5879.1423038837.9932.digitalmars-d at puremagic.com...
>
> > Well, I have it as extern(Windows) like everything else in
> > core.sys.windows.windows - it has extern(Windows): at the top. Should that
> > be something else in this case? I'm not at all familiar with the Windows
> > calling conventions.
>
> Try extern(C) and see if it works.  If it's a C function, it will most
> likely be using C mangling instead of system mangling.

Yes. extern(C) does seem to do the trick. Thanks for guys' help. I've had
the code sitting around incomplete for quite some time now, and it's long
past time for it to become a PR.

https://github.com/D-Programming-Language/phobos/pull/2956

- Jonathan M Davis



More information about the Digitalmars-d mailing list