Click here to Skip to main content
16,013,918 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHandling WM_NCPAINT Pin
Naveen10-Jun-07 19:45
Naveen10-Jun-07 19:45 
AnswerRe: Handling WM_NCPAINT Pin
Akt_4_U10-Jun-07 20:30
Akt_4_U10-Jun-07 20:30 
AnswerRe: Handling WM_NCPAINT Pin
Mark Salsbery11-Jun-07 7:48
Mark Salsbery11-Jun-07 7:48 
GeneralRe: Handling WM_NCPAINT Pin
Naveen11-Jun-07 14:00
Naveen11-Jun-07 14:00 
Questionconverting int* to int Pin
neha.agarwal2710-Jun-07 19:43
neha.agarwal2710-Jun-07 19:43 
AnswerRe: converting int* to int [modified] Pin
Naveen10-Jun-07 19:55
Naveen10-Jun-07 19:55 
AnswerRe: converting int* to int Pin
CPallini10-Jun-07 21:17
mveCPallini10-Jun-07 21:17 
AnswerRe: converting int* to int Pin
JudyL_MD11-Jun-07 2:33
JudyL_MD11-Jun-07 2:33 
Others have answered the details of your questions, but I wanted to make an observation.

When passing pointers between threads, you need to make sure that the item being pointed to (logmsg and row_no) will remain in existence during the time the receiving thread is processing the message. In general, this means that you should not pass pointers to items allocated on the stack i.e. variables that are local to the function sending the message. Your code is ok in this respect because you use SendMessage instead of PostMessage. However, using SendMessage tends to defeat the purpose of multi-threading by forcing the two threads to act sequentially.

Judy

QuestionStatic Control Prob. Pls reply me Pin
TobetheWinner10-Jun-07 18:49
TobetheWinner10-Jun-07 18:49 
AnswerRe: Static Control Prob. Pls reply me Pin
Rajkumar R10-Jun-07 19:02
Rajkumar R10-Jun-07 19:02 
GeneralRe: Static Control Prob. Pls reply me Pin
TobetheWinner10-Jun-07 19:07
TobetheWinner10-Jun-07 19:07 
QuestionStatic Control Prob. Pls reply me Pin
TobetheWinner10-Jun-07 19:40
TobetheWinner10-Jun-07 19:40 
AnswerRe: Static Control Prob. Pls reply me Pin
Christian Graus10-Jun-07 20:16
protectorChristian Graus10-Jun-07 20:16 
QuestionMultithreaded download http files Pin
victording10-Jun-07 16:07
victording10-Jun-07 16:07 
QuestionAccessing the parent's data members Pin
Vancouver10-Jun-07 15:26
Vancouver10-Jun-07 15:26 
AnswerRe: Accessing the parent's data members Pin
Christian Graus10-Jun-07 16:29
protectorChristian Graus10-Jun-07 16:29 
GeneralRe: Accessing the parent's data members Pin
Vancouver10-Jun-07 18:01
Vancouver10-Jun-07 18:01 
GeneralRe: Accessing the parent's data members Pin
Christian Graus10-Jun-07 18:16
protectorChristian Graus10-Jun-07 18:16 
GeneralRe: Accessing the parent's data members Pin
Vancouver10-Jun-07 18:25
Vancouver10-Jun-07 18:25 
GeneralRe: Accessing the parent's data members Pin
Christian Graus10-Jun-07 18:46
protectorChristian Graus10-Jun-07 18:46 
GeneralRe: Accessing the parent's data members Pin
Vancouver10-Jun-07 19:01
Vancouver10-Jun-07 19:01 
AnswerRe: Accessing the parent's data members Pin
Rajkumar R10-Jun-07 19:16
Rajkumar R10-Jun-07 19:16 
AnswerRe: Accessing the parent's data members Pin
John M. Drescher10-Jun-07 17:42
John M. Drescher10-Jun-07 17:42 
GeneralRe: Accessing the parent's data members Pin
Vancouver10-Jun-07 19:07
Vancouver10-Jun-07 19:07 
GeneralRe: Accessing the parent's data members Pin
John M. Drescher11-Jun-07 21:23
John M. Drescher11-Jun-07 21:23 

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.