Click here to Skip to main content
15,902,735 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Adding UI to an existing console project using windows form Pin
leon de boer24-Apr-16 15:49
leon de boer24-Apr-16 15:49 
GeneralRe: Adding UI to an existing console project using windows form Pin
Member 935023725-Apr-16 21:55
Member 935023725-Apr-16 21:55 
QuestionCode Blocks giving fatal error of not finding header file when there are seperate class files Pin
Mur250122-Apr-16 3:07
Mur250122-Apr-16 3:07 
SuggestionRe: Code Blocks giving fatal error of not finding header file when there are seperate class files Pin
Richard MacCutchan22-Apr-16 4:15
mveRichard MacCutchan22-Apr-16 4:15 
QuestionRe: Code Blocks giving fatal error of not finding header file when there are seperate class files Pin
David Crow22-Apr-16 17:58
David Crow22-Apr-16 17:58 
QuestionCan DDX_Text be used with CTEXT resource item Pin
ForNow21-Apr-16 16:58
ForNow21-Apr-16 16:58 
QuestionRe: Can DDX_Text be used with CTEXT resource item Pin
Richard MacCutchan21-Apr-16 20:48
mveRichard MacCutchan21-Apr-16 20:48 
AnswerRe: Can DDX_Text be used with CTEXT resource item Pin
ForNow22-Apr-16 3:26
ForNow22-Apr-16 3:26 
AnswerRe: Can DDX_Text be used with CTEXT resource item Pin
Victor Nijegorodov22-Apr-16 0:39
Victor Nijegorodov22-Apr-16 0:39 
GeneralRe: Can DDX_Text be used with CTEXT resource item Pin
ForNow22-Apr-16 3:25
ForNow22-Apr-16 3:25 
Questioncode path for DoModal Pin
ForNow17-Apr-16 6:21
ForNow17-Apr-16 6:21 
AnswerRe: code path for DoModal Pin
Victor Nijegorodov17-Apr-16 6:58
Victor Nijegorodov17-Apr-16 6:58 
GeneralRe: code path for DoModal Pin
ForNow17-Apr-16 7:07
ForNow17-Apr-16 7:07 
GeneralRe: code path for DoModal Pin
leon de boer17-Apr-16 7:54
leon de boer17-Apr-16 7:54 
QuestionRe: code path for DoModal Pin
David Crow18-Apr-16 4:04
David Crow18-Apr-16 4:04 
AnswerRe: code path for DoModal Pin
leon de boer18-Apr-16 4:20
leon de boer18-Apr-16 4:20 
GeneralRe: code path for DoModal Pin
David Crow18-Apr-16 12:06
David Crow18-Apr-16 12:06 
QuestionWaitForSingleObject not signaled Pin
ForNow14-Apr-16 15:54
ForNow14-Apr-16 15:54 
AnswerRe: WaitForSingleObject not signaled Pin
leon de boer15-Apr-16 4:57
leon de boer15-Apr-16 4:57 
GeneralRe: WaitForSingleObject not signaled/Do CAsyncSockets notifications happen anywhere but in the main thread Pin
ForNow15-Apr-16 6:34
ForNow15-Apr-16 6:34 
AnswerRe: WaitForSingleObject not signaled My apologies Pin
ForNow16-Apr-16 15:36
ForNow16-Apr-16 15:36 
GeneralRe: WaitForSingleObject not signaled My apologies Pin
leon de boer16-Apr-16 18:10
leon de boer16-Apr-16 18:10 
You need to understand this isn't even about Windows you are using a framework and you need to understand the framework.

Windows if you were dealing with the API can do some very different things and in your case the framework determines the behaviour because it was designed with a concept in mind.

Since you seem to need proof the thread is blocked make the wait 10 seconds and look for the timeout
DWORD Ret=WaitForSingleObject(yourEvent, 10000);
		if (Ret==WAIT_TIMEOUT)
		{
			TRACE("*** Houston we have a Timeout ... Thread blocked LdB right ***\n");
		}

If I am right you will get that message 10 seconds later .. so easy to test with 3 lines of code

The solution is play nicely with CAsynSocket or go direct down onto the Windows API and do the socket work yourself. I don't doubt your programming ability just your understanding of the Framework.
In vino veritas


modified 17-Apr-16 3:48am.

GeneralRe: WaitForSingleObject not signaled My apologies Pin
ForNow17-Apr-16 6:14
ForNow17-Apr-16 6:14 
QuestionMFC problem with CMFCVisualManager::SetDefaultManager Pin
jung-kreidler13-Apr-16 4:27
jung-kreidler13-Apr-16 4:27 
QuestionMFC : Not able to populate db records in list control of MFC SDI application Pin
catchy8713-Apr-16 0:58
catchy8713-Apr-16 0:58 

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.