Click here to Skip to main content
15,914,820 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralON_WM_KILLFOCUS Pin
digwizfox12-Jan-05 15:23
digwizfox12-Jan-05 15:23 
GeneralRe: ON_WM_KILLFOCUS Pin
Ryan Binns12-Jan-05 17:00
Ryan Binns12-Jan-05 17:00 
GeneralRe: ON_WM_KILLFOCUS Pin
digwizfox13-Jan-05 6:33
digwizfox13-Jan-05 6:33 
GeneralDynamic Views Pin
Anonymous12-Jan-05 15:12
Anonymous12-Jan-05 15:12 
GeneralRe: Dynamic Views Pin
Yulianto.12-Jan-05 15:31
Yulianto.12-Jan-05 15:31 
GeneralMSVC 2003 GUI Help Pin
c++code10112-Jan-05 14:31
c++code10112-Jan-05 14:31 
GeneralSending output to a printer Pin
BRIMID12-Jan-05 13:29
BRIMID12-Jan-05 13:29 
GeneralMFC socket programing problem Pin
shaihnc12-Jan-05 12:39
shaihnc12-Jan-05 12:39 
Hello all
I am very very new to this and I have to debug this problem and I really need your help.
The problem is that there is client and sever application which are coomunicating. When the server goes down, I like to print a warning in the client.
I know that recive will get a 0 return value when the connection is lost but in my case, it seems like I don't even get there. the program is run through a GUI and in Run function, there is loop like:
while(PeekMessage(&msg, 0, 0, NULL, PM_REMOVE))
{
if(msg.message == MSG_UPDATE_TCPIP_CONNECTIONS)
{
m_ServerIPAcceptDlg.Refresh();
m_TCPSummaryDlg.Refresh();
OnUpdateIP();
}

TranslateMessage(&msg);
DispatchMessage(&msg);
}

DispatchMessage function goes throught some MFC codes and then calls the recive. When the connection is lost the DispatchMessage does not call the recive function anymore.

I am guessing ( I could be wrong as I am very very new to this) that there should be message that I can get that tell me the connection was lost and then print this message.

I have looked every where on line for a list of msg.message types to look and can not find what type of messages are available to me.

Please help me as this is very important to me. If you know a good on line refrence book or any good book that can help me with MFC networking and programing, please let me know.

Thank you kindly for all your helps.
GeneralRe: MFC socket programing problem Pin
shaihnc13-Jan-05 5:32
shaihnc13-Jan-05 5:32 
GeneralSpeed of operators Pin
Malcolm Smart12-Jan-05 11:57
Malcolm Smart12-Jan-05 11:57 
GeneralRe: Speed of operators Pin
Rick York12-Jan-05 12:18
mveRick York12-Jan-05 12:18 
GeneralRe: Speed of operators Pin
Mike Dimmick12-Jan-05 12:19
Mike Dimmick12-Jan-05 12:19 
GeneralRe: Speed of operators Pin
Mike Dimmick12-Jan-05 12:59
Mike Dimmick12-Jan-05 12:59 
GeneralRe: Speed of operators Pin
Ryan Binns12-Jan-05 16:58
Ryan Binns12-Jan-05 16:58 
GeneralOnSize Function : Positioning Static Controls Pin
tnguyen44412-Jan-05 11:50
tnguyen44412-Jan-05 11:50 
GeneralRe: OnSize Function : Positioning Static Controls Pin
User 1278212-Jan-05 16:13
User 1278212-Jan-05 16:13 
GeneralRe: OnSize Function : Positioning Static Controls Pin
Ryan Binns12-Jan-05 17:01
Ryan Binns12-Jan-05 17:01 
GeneralRe: OnSize Function : Positioning Static Controls Pin
tnguyen44413-Jan-05 6:10
tnguyen44413-Jan-05 6:10 
GeneralForms Problem (new to Win32 programming) Pin
LighthouseJ12-Jan-05 11:30
LighthouseJ12-Jan-05 11:30 
GeneralChecking Namedpipe Access Pin
humps12-Jan-05 10:43
humps12-Jan-05 10:43 
GeneralSetActivePage in property page Pin
DanYELL12-Jan-05 9:58
DanYELL12-Jan-05 9:58 
GeneralRe: SetActivePage in property page Pin
Michael Dunn12-Jan-05 10:23
sitebuilderMichael Dunn12-Jan-05 10:23 
GeneralRe: SetActivePage in property page Pin
DanYELL12-Jan-05 12:28
DanYELL12-Jan-05 12:28 
GeneralRe: SetActivePage in property page Pin
Michael Dunn12-Jan-05 14:50
sitebuilderMichael Dunn12-Jan-05 14:50 
Generalbrowsing DLL resource files through CFileDialog Pin
(Steven Hicks)n+112-Jan-05 8:13
(Steven Hicks)n+112-Jan-05 8:13 

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.