ErrnoException in Windows

ketmar via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Mar 1 09:13:04 PST 2015


On Sun, 01 Mar 2015 16:39:27 +0000, novice2 wrote:

> Could you, please, help me to understand, why code:

'cause winapi functions never sets `errno`. `errno` is a libc feature, 
and winapi knows nothing about libc. besides, `GetLastError()` is not 
required to return correct errno codes.

so you have to either use libc funcions, or translate `GetLastError()` 
codes to errno manually.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20150301/ad107647/attachment.sig>


More information about the Digitalmars-d-learn mailing list