I am using VC6, SP5 and am getting a strange error when using gethostbyname() in a thread. It is a worker thread and messaging is fully active. Yet when I access gethostbyname() I get a NULL returned and WSAGetLastError() immediately afterwards indicates a WSANOTINITIALISED error.
Digging into the on-line literature reveals that WSAStartup() either was not called or it failed. The problem is that it was called and it did not fail. It was also called at the start of the thread. I replaced that with AfxSocketInit() and get exactly the same error. This used to work fine and it seems that after Service Pack 5 came into the picture I get this problem. That seems a bit much to believe.
Dialogs (2) modeless dialog and a worker thread. Handling data shared between threads. Recursive functions.
Continuing from the tenth article about sudoku.
Last article we worked with a modal dialog to help maintain informat…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online)
The email signat…