getlasterror Questions

1

Solved

I am receiving error code 67 from the code below, which means ERROR_BAD_NET_NAME. Why is it happening? How can I fix it? SOCKADDR address; strcpy_s(address.sa_data, "8.8.8.8"); address.sa_family...
Newspaper asked 10/5, 2017 at 17:43

1

Solved

I am trying to do some serial communication through my usb port (named COM15), and I am getting an error. This is the code where the error is occurring: HANDLE myPortHandle = CreateFile("COM...
Nought asked 12/1, 2015 at 19:51

2

Solved

What is conventional return values for applications in Windows and GNU/Linux respectivly. 0 means success. But what should be used on user-requested abort. When I abort on Windows, it returns 3, bu...
Blankenship asked 15/8, 2013 at 8:0

1

Solved

I'm confused as to the exact relationship between GetLastError() and errno. Are they the same numerical values, or something completely different? How do I know which one I should check? And if I ...
Dalessio asked 18/11, 2013 at 20:8

1

Solved

I am opening a serial port using CreateFile(). I've got a testcase (too complicated to redistribute) that consistently causes CreateFile() to return INVALID_HANDLE_VALUE and GetLastError() to retur...
Alb asked 5/10, 2011 at 17:43
1

© 2022 - 2024 — McMap. All rights reserved.