Click here to Skip to main content
15,913,836 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: printf - Messagebox Pin
Programm3r28-Feb-07 1:59
Programm3r28-Feb-07 1:59 
QuestionFile in vc++ Pin
deeps_cute27-Feb-07 22:26
deeps_cute27-Feb-07 22:26 
AnswerRe: File in vc++ Pin
toxcct27-Feb-07 22:29
toxcct27-Feb-07 22:29 
AnswerRe: File in vc++ Pin
Cedric Moonen27-Feb-07 22:31
Cedric Moonen27-Feb-07 22:31 
QuestionNetwork simulator's tcp code......... Pin
chandni chi27-Feb-07 22:26
chandni chi27-Feb-07 22:26 
AnswerRe: Network simulator's tcp code......... Pin
ThatsAlok27-Feb-07 23:19
ThatsAlok27-Feb-07 23:19 
QuestionThreads and graceful exit Pin
vikramlinux27-Feb-07 22:21
vikramlinux27-Feb-07 22:21 
AnswerRe: Threads and graceful exit Pin
Roger Stoltz27-Feb-07 22:37
Roger Stoltz27-Feb-07 22:37 
vikrams wrote:
I have created a thread which calls a function. Sometime this function may get hung. In such situation I need to termintate my thread gracefully.


If your thread hangs you've passed the point of ending the thread gracefully since you cannot communicate with it. Are you sure that this third-party-lib is thread safe and doesn't produce deadlocks if called from different threads? If it is thread safe it would probably say so in its documentation.
Try a single threaded solution and see if it works.
You're not using COM, are you?


"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"High speed never compensates for wrong direction!" - unknown

GeneralRe: Threads and graceful exit Pin
vikramlinux27-Feb-07 22:42
vikramlinux27-Feb-07 22:42 
GeneralRe: Threads and graceful exit Pin
Roger Stoltz27-Feb-07 23:00
Roger Stoltz27-Feb-07 23:00 
GeneralRe: Threads and graceful exit Pin
vikramlinux27-Feb-07 23:05
vikramlinux27-Feb-07 23:05 
GeneralRe: Threads and graceful exit Pin
jhwurmbach28-Feb-07 2:10
jhwurmbach28-Feb-07 2:10 
QuestionDisplay String Message.. Pin
Shah Satish27-Feb-07 22:17
Shah Satish27-Feb-07 22:17 
AnswerRe: Display String Message.. Pin
toxcct27-Feb-07 22:20
toxcct27-Feb-07 22:20 
GeneralRe: Display String Message.. Pin
Shah Satish27-Feb-07 22:30
Shah Satish27-Feb-07 22:30 
GeneralRe: Display String Message.. Pin
toxcct27-Feb-07 22:34
toxcct27-Feb-07 22:34 
QuestionIndenting the first line in Graphics::DrawString Pin
Bartosz Bien27-Feb-07 21:57
Bartosz Bien27-Feb-07 21:57 
QuestionWindow procedure Pin
ng4kau127-Feb-07 21:49
ng4kau127-Feb-07 21:49 
AnswerRe: Window procedure Pin
toxcct27-Feb-07 21:58
toxcct27-Feb-07 21:58 
AnswerRe: Window procedure Pin
Rick York27-Feb-07 22:11
mveRick York27-Feb-07 22:11 
Questionhow i used SendMessage or post Message for update child window? Pin
amitmistry_petlad 27-Feb-07 21:48
amitmistry_petlad 27-Feb-07 21:48 
AnswerRe: how i used SendMessage or post Message for update child window? Pin
ThatsAlok27-Feb-07 22:03
ThatsAlok27-Feb-07 22:03 
GeneralRe: how i used SendMessage or post Message for update child window? Pin
Roger Stoltz27-Feb-07 22:30
Roger Stoltz27-Feb-07 22:30 
GeneralRe: how i used SendMessage or post Message for update child window? Pin
ThatsAlok27-Feb-07 22:42
ThatsAlok27-Feb-07 22:42 
GeneralRe: how i used SendMessage or post Message for update child window? Pin
Roger Stoltz27-Feb-07 22:48
Roger Stoltz27-Feb-07 22: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.