Click here to Skip to main content
15,925,199 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: UuidFromString not creating GUID correctly - Help! Pin
Priya_Sundar10-Oct-07 20:34
Priya_Sundar10-Oct-07 20:34 
GeneralRe: UuidFromString not creating GUID correctly - Help! Pin
Nibu babu thomas10-Oct-07 20:37
Nibu babu thomas10-Oct-07 20:37 
GeneralRe: UuidFromString not creating GUID correctly - Help! Pin
Priya_Sundar10-Oct-07 21:07
Priya_Sundar10-Oct-07 21:07 
QuestionWhat is core dump ? Pin
Yashusid10-Oct-07 18:52
Yashusid10-Oct-07 18:52 
QuestionMessagebox problem Pin
Lakshmi_p10-Oct-07 18:41
Lakshmi_p10-Oct-07 18:41 
AnswerRe: Messagebox problem Pin
Sachinpatole10-Oct-07 19:18
Sachinpatole10-Oct-07 19:18 
AnswerRe: Messagebox problem Pin
Nibu babu thomas10-Oct-07 19:31
Nibu babu thomas10-Oct-07 19:31 
GeneralRe: Messagebox problem Pin
Naveen10-Oct-07 20:06
Naveen10-Oct-07 20:06 
GeneralRe: Messagebox problem Pin
Nibu babu thomas10-Oct-07 22:10
Nibu babu thomas10-Oct-07 22:10 
GeneralRe: Messagebox problem Pin
Lakshmi_p10-Oct-07 20:14
Lakshmi_p10-Oct-07 20:14 
QuestionHow to locate application folder? Pin
TooShy2Talk10-Oct-07 15:46
TooShy2Talk10-Oct-07 15:46 
AnswerRe: How to locate application folder? Pin
Naveen10-Oct-07 16:14
Naveen10-Oct-07 16:14 
GeneralRe: How to locate application folder? Pin
TooShy2Talk10-Oct-07 16:58
TooShy2Talk10-Oct-07 16:58 
AnswerRe: How to locate application folder? Pin
David Crow11-Oct-07 3:31
David Crow11-Oct-07 3:31 
QuestionPlease help me using ipl98library version 2.20 in Borland C++!!! Pin
Tien Manh10-Oct-07 15:35
Tien Manh10-Oct-07 15:35 
QuestionNeed local C++/WinMobile consulting help [modified] Pin
billsh10-Oct-07 14:51
billsh10-Oct-07 14:51 
QuestionWSAGetLastError() Pin
dellthinker10-Oct-07 14:51
dellthinker10-Oct-07 14:51 
QuestionRe: WSAGetLastError() Pin
David Crow11-Oct-07 3:30
David Crow11-Oct-07 3:30 
AnswerRe: WSAGetLastError() Pin
dellthinker11-Oct-07 5:22
dellthinker11-Oct-07 5:22 
GeneralRe: WSAGetLastError() Pin
David Crow11-Oct-07 5:33
David Crow11-Oct-07 5:33 
GeneralRe: WSAGetLastError() Pin
dellthinker11-Oct-07 7:23
dellthinker11-Oct-07 7:23 
QuestionRe: WSAGetLastError() Pin
David Crow11-Oct-07 7:34
David Crow11-Oct-07 7:34 
AnswerRe: WSAGetLastError() Pin
dellthinker11-Oct-07 15:37
dellthinker11-Oct-07 15:37 
GeneralRe: WSAGetLastError() Pin
JudyL_MD12-Oct-07 3:27
JudyL_MD12-Oct-07 3:27 
Here's my usual test for socket closure. Once you detect the socket closure, set some flag and exit from your routine. In your main program, check for that flag and call your connect code. I wouldn't put it inside the if/else code block - connection code is too problematic and time-consuming.

iResult = send (m_hSocket, pBuffer, iLength, 0);
if (iResult == SOCKET_ERROR)
{
    iResult = WSAGetLastError ()
    if ((iResult == WSAENETDOWN) ||
        (iResult == WSAENETRESET) ||
        (iResult == WSAECONNABORTED) ||
        (iResult == WSAETIMEDOUT) ||
        (iResult == WSAECONNRESET))
    {
        // socket closed
    }
    else
    {
        // some funky send error
    }


Judy
GeneralRe: WSAGetLastError() Pin
David Crow12-Oct-07 3:30
David Crow12-Oct-07 3:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.