Click here to Skip to main content
15,881,561 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: External program used excel, if you click on the click of a button to send a message through the simulation, excel this call can not be started. Pin
Member 112832727-Dec-14 19:14
Member 112832727-Dec-14 19:14 
AnswerRe: External program used excel, if you click on the click of a button to send a message through the simulation, excel this call can not be started. Pin
Member 112832725-Dec-14 3:49
Member 112832725-Dec-14 3:49 
Questionthreads ( c language ) in Ubunt Pin
Eng \ zeyad3-Dec-14 0:05
Eng \ zeyad3-Dec-14 0:05 
AnswerRe: threads ( c language ) in Ubunt Pin
den2k883-Dec-14 0:10
professionalden2k883-Dec-14 0:10 
AnswerRe: threads ( c language ) in Ubunt Pin
CPallini3-Dec-14 0:43
mveCPallini3-Dec-14 0:43 
GeneralRe: threads ( c language ) in Ubunt Pin
Eng \ zeyad3-Dec-14 0:50
Eng \ zeyad3-Dec-14 0:50 
GeneralRe: threads ( c language ) in Ubunt Pin
Eng \ zeyad3-Dec-14 0:53
Eng \ zeyad3-Dec-14 0:53 
AnswerRe: threads ( c language ) in Ubunt Pin
Albert Holguin3-Dec-14 3:55
professionalAlbert Holguin3-Dec-14 3:55 
0. Split your array into four parts (use the pointer to determine where you're doing the split, don't make another copy of the data)
1. Create worker threads to sum each with their portion (pointer to the beginning and size).
2. Wait for all threads to finish, sum their results.

If this was a program that needed to do this over and over again, I'd also create a "thread pool" that is precreated. Creating threads on the fly is actually a pretty slow process, you want to do it sparingly.
QuestionHow to use overwriting circular buffer for printing strings in c programming? Pin
ShashiAcharya29-Nov-14 22:38
ShashiAcharya29-Nov-14 22:38 
SuggestionRe: How to use overwriting circular buffer for printing strings in c programming? Pin
Richard MacCutchan29-Nov-14 23:21
mveRichard MacCutchan29-Nov-14 23:21 
AnswerRe: How to use overwriting circular buffer for printing strings in c programming? Pin
jschell30-Nov-14 6:11
jschell30-Nov-14 6:11 
AnswerRe: How to use overwriting circular buffer for printing strings in c programming? Pin
CPallini2-Dec-14 9:10
mveCPallini2-Dec-14 9:10 
Questionwindows version of message queue? Pin
neodeaths29-Nov-14 6:55
neodeaths29-Nov-14 6:55 
AnswerRe: windows version of message queue? Pin
Richard MacCutchan29-Nov-14 23:23
mveRichard MacCutchan29-Nov-14 23:23 
AnswerRe: windows version of message queue? Pin
Albert Holguin1-Dec-14 4:20
professionalAlbert Holguin1-Dec-14 4:20 
Questionhow to use message queue in windows Pin
neodeaths29-Nov-14 6:47
neodeaths29-Nov-14 6:47 
AnswerRe: how to use message queue in windows Pin
Richard MacCutchan29-Nov-14 23:24
mveRichard MacCutchan29-Nov-14 23:24 
AnswerRe: how to use message queue in windows Pin
jschell30-Nov-14 6:18
jschell30-Nov-14 6:18 
AnswerRe: how to use message queue in windows Pin
Albert Holguin1-Dec-14 3:59
professionalAlbert Holguin1-Dec-14 3:59 
QuestionImageHlp.h and DbgHelp.h in the same program Pin
Richard Andrew x6428-Nov-14 8:33
professionalRichard Andrew x6428-Nov-14 8:33 
AnswerRe: ImageHlp.h and DbgHelp.h in the same program Pin
CPallini29-Nov-14 0:04
mveCPallini29-Nov-14 0:04 
QuestionDllMain safety Pin
Richard Andrew x6425-Nov-14 11:09
professionalRichard Andrew x6425-Nov-14 11:09 
AnswerRe: DllMain safety Pin
«_Superman_»25-Nov-14 18:51
professional«_Superman_»25-Nov-14 18:51 
GeneralRe: DllMain safety Pin
Richard Andrew x6428-Nov-14 8:30
professionalRichard Andrew x6428-Nov-14 8:30 
Questionc++ Windows Form app: How to grant public access to DataTable object? Pin
Member 1123037225-Nov-14 9:46
Member 1123037225-Nov-14 9:46 

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.