On Wednesday, February 04, 2015 09:02:01 ketmar via Digitalmars-d wrote: > On Wed, 04 Feb 2015 00:33:48 -0800, Jonathan M Davis via Digitalmars-d > wrote: > > > On Wednesday, February 04, 2015 08:18:46 Kagamin via Digitalmars-d > > wrote: > >> You got it declared with stdcall convention, should change to cdecl. > > > > 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. > > for the most time `extern(Windows)` is using only for winapi calls. and > `wsopen` is a library call, so it's likely an `extern(C)`.
Well, unfortunately, a C function is a C function to me. I know that different calling conventions exist in Windows, but I have no idea why, what the difference is, or what they affect. AFAIK, it's not an issue that exists on POSIX systems. I really should study up on it. - Jonathan M Davis