Click here to Skip to main content
15,920,438 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionsubstring in a std::string Pin
rahultaing22-Apr-06 19:21
rahultaing22-Apr-06 19:21 
AnswerRe: substring in a std::string Pin
Stephen Hewitt22-Apr-06 19:45
Stephen Hewitt22-Apr-06 19:45 
QuestionWait for Thread Pin
RedDragon2k22-Apr-06 16:35
RedDragon2k22-Apr-06 16:35 
AnswerRe: Wait for Thread Pin
Stephen Hewitt22-Apr-06 17:36
Stephen Hewitt22-Apr-06 17:36 
GeneralRe: Wait for Thread Pin
RedDragon2k23-Apr-06 16:11
RedDragon2k23-Apr-06 16:11 
AnswerRe: Wait for Thread Pin
Nick_Kisialiou22-Apr-06 21:59
Nick_Kisialiou22-Apr-06 21:59 
GeneralRe: Wait for Thread Pin
Stephen Hewitt22-Apr-06 22:21
Stephen Hewitt22-Apr-06 22:21 
AnswerRe: Wait for Thread Pin
John R. Shaw22-Apr-06 22:24
John R. Shaw22-Apr-06 22:24 
That is easy just do not return from the thread util a client has reacted. No wait a client may never react and then you end up with an infinite loop.

There are multiple ways to provide a solution to this problem, the simpilest is to disable all commands that require the client to communicate with you. That is anything that is not be dependent on an outside source, like close application. The main thread should never be disabled, because you always need the option of shuting down the program.

INTP
“Testing can show the presence of errors, but not their absence.”
Edsger Dijkstra
QuestionForwarding Functions between DLL's Pin
Bram van Kampen22-Apr-06 14:37
Bram van Kampen22-Apr-06 14:37 
AnswerRe: Forwarding Functions between DLL's Pin
cmk22-Apr-06 14:57
cmk22-Apr-06 14:57 
GeneralRe: Forwarding Functions between DLL's Pin
Bram van Kampen22-Apr-06 15:08
Bram van Kampen22-Apr-06 15:08 
GeneralRe: Forwarding Functions between DLL's Pin
cmk22-Apr-06 17:16
cmk22-Apr-06 17:16 
GeneralRe: Forwarding Functions between DLL's Pin
Bram van Kampen23-Apr-06 15:11
Bram van Kampen23-Apr-06 15:11 
AnswerRe: Forwarding Functions between DLL's Pin
Bram van Kampen22-Apr-06 16:34
Bram van Kampen22-Apr-06 16:34 
Question[Message Deleted] Pin
chasetoys22-Apr-06 9:39
chasetoys22-Apr-06 9:39 
AnswerRe: MFC or No MFC? (No .NET) Pin
Michael Dunn22-Apr-06 9:51
sitebuilderMichael Dunn22-Apr-06 9:51 
GeneralRe: MFC or No MFC? (No .NET) Pin
chasetoys22-Apr-06 10:18
chasetoys22-Apr-06 10:18 
GeneralRe: MFC or No MFC? (No .NET) Pin
Kevin McFarlane22-Apr-06 12:42
Kevin McFarlane22-Apr-06 12:42 
GeneralRe: MFC or No MFC? (No .NET) Pin
Bram van Kampen22-Apr-06 14:57
Bram van Kampen22-Apr-06 14:57 
GeneralRe: MFC or No MFC? (No .NET) Pin
Bram van Kampen22-Apr-06 15:36
Bram van Kampen22-Apr-06 15:36 
AnswerRe: MFC or No MFC? (No .NET) Pin
Bram van Kampen22-Apr-06 14:43
Bram van Kampen22-Apr-06 14:43 
QuestionCallback and window procedures Pin
chasetoys22-Apr-06 9:31
chasetoys22-Apr-06 9:31 
AnswerRe: Callback and window procedures Pin
Bram van Kampen22-Apr-06 14:21
Bram van Kampen22-Apr-06 14:21 
AnswerRe: retrieve some information from a mail! Pin
David Crow24-Apr-06 3:14
David Crow24-Apr-06 3:14 
Questiona big problem with updating the code of my server Pin
farshad.f22-Apr-06 6:48
farshad.f22-Apr-06 6:48 

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.