Click here to Skip to main content
15,887,477 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRenaming Tree Nodes Pin
laiju14-Sep-05 20:41
laiju14-Sep-05 20:41 
QuestionWhat is the Anotomy of Encarta? Pin
shoaibnawaz14-Sep-05 20:30
shoaibnawaz14-Sep-05 20:30 
AnswerRe: What is the Anotomy of Encarta? Pin
vikas amin14-Sep-05 21:36
vikas amin14-Sep-05 21:36 
QuestionHow to print the page for right of screen !!! Pin
ebinaini14-Sep-05 19:51
ebinaini14-Sep-05 19:51 
QuestionHow to wait for thread & if no response within time abort it Pin
karmendra_js14-Sep-05 19:32
karmendra_js14-Sep-05 19:32 
AnswerRe: How to wait for thread & if no response within time abort it Pin
PJ Arends14-Sep-05 19:52
professionalPJ Arends14-Sep-05 19:52 
GeneralRe: How to wait for thread & if no response within time abort it Pin
karmendra_js14-Sep-05 21:05
karmendra_js14-Sep-05 21:05 
GeneralRe: How to wait for thread & if no response within time abort it Pin
HumanOsc14-Sep-05 21:59
HumanOsc14-Sep-05 21:59 
Hello...

First, You use MFC then you should you use the Threading function from MFC like AfxBeginThread because some MFC internals need to prepared for Threading...

When you use the pure API calls in the MFC it can produce unexpected situations and also Memory Leaks...

Second, when you use the pure API then always closing the Thread Handle...

Third, Use the Sleep function in your worker thread to enforce a context switch this can improve the performance of your app...

Fourth... I believe you should read some more articels about threading before you continue your work... Smile | :)

You can find the most important facts about threading here (especially for MFC) : http://www.codeproject.com/threads/usingworkerthreads.asp[^]

Best regards...
GeneralRe: How to wait for thread & if no response within time abort it Pin
David Crow15-Sep-05 7:43
David Crow15-Sep-05 7:43 
GeneralRe: How to wait for thread & if no response within time abort it Pin
ThatsAlok15-Sep-05 18:15
ThatsAlok15-Sep-05 18:15 
GeneralRe: How to wait for thread & if no response within time abort it Pin
David Crow16-Sep-05 2:18
David Crow16-Sep-05 2:18 
AnswerRe: How to wait for thread & if no response within time abort it Pin
Roger Stoltz14-Sep-05 21:45
Roger Stoltz14-Sep-05 21:45 
GeneralRe: How to wait for thread & if no response within time abort it Pin
karmendra_js14-Sep-05 22:04
karmendra_js14-Sep-05 22:04 
GeneralRe: How to wait for thread & if no response within time abort it Pin
HumanOsc14-Sep-05 22:40
HumanOsc14-Sep-05 22:40 
AnswerRe: How to wait for thread & if no response within time abort it Pin
karmendra_js14-Sep-05 23:03
karmendra_js14-Sep-05 23:03 
GeneralRe: How to wait for thread & if no response within time abort it Pin
Roger Stoltz14-Sep-05 23:22
Roger Stoltz14-Sep-05 23:22 
GeneralRe: How to wait for thread & if no response within time abort it Pin
karmendra_js14-Sep-05 23:43
karmendra_js14-Sep-05 23:43 
GeneralRe: How to wait for thread & if no response within time abort it Pin
Roger Stoltz15-Sep-05 1:53
Roger Stoltz15-Sep-05 1:53 
QuestionAbout CString : Plz Send Urgently Pin
parims14-Sep-05 19:08
parims14-Sep-05 19:08 
AnswerRe: About CString : Plz Send Urgently Pin
karmendra_js14-Sep-05 19:45
karmendra_js14-Sep-05 19:45 
AnswerRe: About CString : Plz Send Urgently Pin
prasad_som14-Sep-05 19:51
prasad_som14-Sep-05 19:51 
AnswerRe: About CString : Plz Send Urgently Pin
kakan14-Sep-05 20:03
professionalkakan14-Sep-05 20:03 
AnswerRe: About CString : Plz Send Urgently Pin
vikas amin15-Sep-05 1:11
vikas amin15-Sep-05 1:11 
JokeRe: About CString : Plz Send Urgently Pin
prasad_som15-Sep-05 2:16
prasad_som15-Sep-05 2:16 
AnswerRe: About CString : Plz Send Urgently Pin
YoSilver15-Sep-05 14:35
YoSilver15-Sep-05 14:35 

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.