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.
Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!
Dialogs (1) modal - maintaining the database.
Continuing from the ninth article about sudoku.
You might have heard of modal and modeless dialogs. Here with this Sudoku application will we use one of each type: a modal dialog …
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…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…