Click here to Skip to main content
15,925,181 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionNeed some suggestion to develop a visio-like app using MFC Pin
yybenny25-Dec-08 17:13
yybenny25-Dec-08 17:13 
GeneralRe: Need some suggestion to develop a visio-like app using MFC Pin
Luc Pattyn25-Dec-08 17:32
sitebuilderLuc Pattyn25-Dec-08 17:32 
GeneralRe: Need some suggestion to develop a visio-like app using MFC Pin
yybenny25-Dec-08 19:26
yybenny25-Dec-08 19:26 
GeneralRe: Need some suggestion to develop a visio-like app using MFC Pin
yybenny25-Dec-08 20:48
yybenny25-Dec-08 20:48 
QuestionIs This Thread Safe Pin
BobInNJ25-Dec-08 16:26
BobInNJ25-Dec-08 16:26 
GeneralRe: Is This Thread Safe Pin
Luc Pattyn25-Dec-08 17:29
sitebuilderLuc Pattyn25-Dec-08 17:29 
AnswerRe: Is This Thread Safe Pin
Code-o-mat25-Dec-08 22:51
Code-o-mat25-Dec-08 22:51 
GeneralRe: Is This Thread Safe Pin
BobInNJ26-Dec-08 6:16
BobInNJ26-Dec-08 6:16 
Thanks for the response. I am leaning towards using the PostMessage approach. I am wondering why you said PostMessage rather than SendMessage. Is one better than the other?

I am also thinking that if I wanted to use the locking approach, that I should use two locks. That is, when one thread is reporting success, the other thread can report failure. Maybe I did not give you enough information. Each thread represents a simulation of a stochastic process. Some times, due to luck, they will report success. Other times, they will report failure. What user cares about is the percentage of time they report success. Right now, it is taking about 10 milliseconds per simulation and when the program is put into use, the user will be doing about 1 million simulations per run.

With that said, if I use the locking approach, is there any reason to use only one lock?

Thanks

Bob
GeneralRe: Is This Thread Safe Pin
Code-o-mat26-Dec-08 7:57
Code-o-mat26-Dec-08 7:57 
GeneralRe: Is This Thread Safe Pin
BobInNJ26-Dec-08 8:28
BobInNJ26-Dec-08 8:28 
GeneralRe: Is This Thread Safe Pin
Mark Salsbery26-Dec-08 10:20
Mark Salsbery26-Dec-08 10:20 
GeneralRe: Is This Thread Safe Pin
Code-o-mat26-Dec-08 10:56
Code-o-mat26-Dec-08 10:56 
GeneralRe: Is This Thread Safe Pin
Mark Salsbery26-Dec-08 11:27
Mark Salsbery26-Dec-08 11:27 
GeneralRe: Is This Thread Safe Pin
Code-o-mat26-Dec-08 10:38
Code-o-mat26-Dec-08 10:38 
Questioncannot delete CStringArray like this? [modified] Pin
kaviniswell25-Dec-08 15:58
kaviniswell25-Dec-08 15:58 
AnswerRe: cannot delete CStringArray like this? Pin
kaviniswell25-Dec-08 16:12
kaviniswell25-Dec-08 16:12 
AnswerRe: cannot delete CStringArray like this? Pin
BobInNJ25-Dec-08 16:38
BobInNJ25-Dec-08 16:38 
GeneralRe: cannot delete CStringArray like this? [modified] Pin
kaviniswell25-Dec-08 17:31
kaviniswell25-Dec-08 17:31 
GeneralRe: cannot delete CStringArray like this? Pin
kaviniswell25-Dec-08 17:45
kaviniswell25-Dec-08 17:45 
GeneralRe: cannot delete CStringArray like this? Pin
Richard Andrew x6426-Dec-08 0:40
professionalRichard Andrew x6426-Dec-08 0:40 
GeneralRe: cannot delete CStringArray like this? Pin
kaviniswell26-Dec-08 1:23
kaviniswell26-Dec-08 1:23 
Questionwindow in thread Pin
dene9997025-Dec-08 13:00
dene9997025-Dec-08 13:00 
AnswerRe: window in thread Pin
Richard Andrew x6425-Dec-08 13:28
professionalRichard Andrew x6425-Dec-08 13:28 
QuestionAdding a .wav file as a resource in visual studio 2008 express, Hi, I need some help with this Pin
Sadaiyappan25-Dec-08 5:57
Sadaiyappan25-Dec-08 5:57 
AnswerRe: Adding a .wav file as a resource in visual studio 2008 express, Hi, I need some help with this Pin
Richard Andrew x6425-Dec-08 8:10
professionalRichard Andrew x6425-Dec-08 8:10 

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.