Click here to Skip to main content
15,896,063 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: What is differences between a background thread and a modeless dialog? Pin
Albert Holguin19-Nov-11 15:48
professionalAlbert Holguin19-Nov-11 15:48 
QuestionMDI application with CMFCVisualManager, can dialog have the themes? Pin
rahul.kulshreshtha18-Nov-11 23:20
rahul.kulshreshtha18-Nov-11 23:20 
QuestionSimplest way to start a MFC program from a MFC program Pin
Member 28839418-Nov-11 21:38
Member 28839418-Nov-11 21:38 
AnswerRe: Simplest way to start a MFC program from a MFC program Pin
Richard MacCutchan18-Nov-11 22:01
mveRichard MacCutchan18-Nov-11 22:01 
GeneralRe: Simplest way to start a MFC program from a MFC program Pin
Member 28839418-Nov-11 23:01
Member 28839418-Nov-11 23:01 
GeneralRe: Simplest way to start a MFC program from a MFC program Pin
Richard MacCutchan18-Nov-11 23:06
mveRichard MacCutchan18-Nov-11 23:06 
GeneralRe: Simplest way to start a MFC program from a MFC program Pin
Member 28839418-Nov-11 23:18
Member 28839418-Nov-11 23:18 
QuestionHow to inhibit parent window from blocking when using CSocket/CTimeoutSocket Pin
Member 28839418-Nov-11 20:53
Member 28839418-Nov-11 20:53 
I am trying to create a program in MFC that talkes to several wireless IP-routers on internet. Now and then will a router be disconnected, and when that happen will the parent window in my MFC program be blocked for a while, which is not acceptable.

The reason for this is that in my MFC program it should be possible for a user to send and receive commands to one of the router while the other routers is supervised (I sending a special command to these router to see if they is still up and running).

The problem is that if one of the routers is disconnected and my MFC program sends out a supervise command to this router will the main window be blocked which means that a user cannot use the parent window for 30 seconds or so.

I have tried to solve this with a worker thread but I could not invoke any CTimeoutSocket from this thread since the MFC program stopped working then.

So I tried to create a hidden modeless dialog and put all the CTimeoutSocket code in this dialog but when a socket is blocked for a while will not only the modeless dialog be blocket but also the parent window.

So have anyone any idea how I shall do to inhibit the parent window from be blocked?

modified 19-Nov-11 3:15am.

AnswerRe: How to inhibit parent window from blocking when using CSocket/CTimeoutSocket Pin
Code-o-mat20-Nov-11 2:23
Code-o-mat20-Nov-11 2:23 
QuestionReverse Triangle Star Pin
AREYASB18-Nov-11 17:21
AREYASB18-Nov-11 17:21 
AnswerRe: Reverse Triangle Star Pin
Rajesh R Subramanian18-Nov-11 17:51
professionalRajesh R Subramanian18-Nov-11 17:51 
QuestionRe: Reverse Triangle Star Pin
David Crow19-Nov-11 15:46
David Crow19-Nov-11 15:46 
AnswerRe: Reverse Triangle Star Pin
AREYASB19-Nov-11 21:28
AREYASB19-Nov-11 21:28 
GeneralRe: Reverse Triangle Star Pin
enhzflep20-Nov-11 1:57
enhzflep20-Nov-11 1:57 
GeneralRe: Reverse Triangle Star Pin
AREYASB20-Nov-11 21:51
AREYASB20-Nov-11 21:51 
QuestionRe: Reverse Triangle Star Pin
David Crow20-Nov-11 17:14
David Crow20-Nov-11 17:14 
AnswerRe: Reverse Triangle Star Pin
AREYASB20-Nov-11 21:48
AREYASB20-Nov-11 21:48 
QuestionRe: Reverse Triangle Star Pin
David Crow21-Nov-11 4:13
David Crow21-Nov-11 4:13 
QuestionStar Shear Pin
AREYASB18-Nov-11 15:58
AREYASB18-Nov-11 15:58 
QuestionRe: Star Shear Pin
David Crow1-Dec-11 7:43
David Crow1-Dec-11 7:43 
QuestionUnderstanding wndproc, callbacks and threads, win32 c++ Pin
jkirkerx18-Nov-11 6:47
professionaljkirkerx18-Nov-11 6:47 
AnswerRe: Understanding wndproc, callbacks and threads, win32 c++ Pin
David Crow18-Nov-11 7:05
David Crow18-Nov-11 7:05 
GeneralRe: Understanding wndproc, callbacks and threads, win32 c++ Pin
jkirkerx18-Nov-11 7:47
professionaljkirkerx18-Nov-11 7:47 
AnswerRe: Understanding wndproc, callbacks and threads, win32 c++ Pin
Chuck O'Toole18-Nov-11 7:46
Chuck O'Toole18-Nov-11 7:46 
GeneralRe: Understanding wndproc, callbacks and threads, win32 c++ Pin
jkirkerx18-Nov-11 8:04
professionaljkirkerx18-Nov-11 8:04 

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.