Click here to Skip to main content
15,891,184 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
AnswerRe: Stuck with one program. Pin
Artur Linov IT25-Jul-17 6:43
Artur Linov IT25-Jul-17 6:43 
AnswerRe: Stuck with one program. Pin
Member 1496952719-Oct-20 7:04
Member 1496952719-Oct-20 7:04 
Questionprinting the customized data through printer in vc++ 6.0 dialog based. Pin
Member 1322408614-Jun-17 19:42
Member 1322408614-Jun-17 19:42 
AnswerRe: printing the customized data through printer in vc++ 6.0 dialog based. Pin
Richard MacCutchan14-Jun-17 22:50
mveRichard MacCutchan14-Jun-17 22:50 
GeneralRe: printing the customized data through printer in vc++ 6.0 dialog based. Pin
rahul199514-Jun-17 23:20
rahul199514-Jun-17 23:20 
GeneralRe: printing the customized data through printer in vc++ 6.0 dialog based. Pin
Richard MacCutchan15-Jun-17 1:04
mveRichard MacCutchan15-Jun-17 1:04 
GeneralRe: printing the customized data through printer in vc++ 6.0 dialog based. Pin
rahul199515-Jun-17 2:27
rahul199515-Jun-17 2:27 
GeneralRe: printing the customized data through printer in vc++ 6.0 dialog based. Pin
Richard MacCutchan15-Jun-17 2:57
mveRichard MacCutchan15-Jun-17 2:57 
GeneralRe: printing the customized data through printer in vc++ 6.0 dialog based. Pin
Richard MacCutchan15-Jun-17 3:06
mveRichard MacCutchan15-Jun-17 3:06 
GeneralRe: printing the customized data through printer in vc++ 6.0 dialog based. Pin
Richard MacCutchan15-Jun-17 6:15
mveRichard MacCutchan15-Jun-17 6:15 
GeneralRe: printing the customized data through printer in vc++ 6.0 dialog based. Pin
rahul199515-Jun-17 20:15
rahul199515-Jun-17 20:15 
GeneralRe: printing the customized data through printer in vc++ 6.0 dialog based. Pin
Richard MacCutchan15-Jun-17 21:26
mveRichard MacCutchan15-Jun-17 21:26 
GeneralRe: printing the customized data through printer in vc++ 6.0 dialog based. Pin
rahul199515-Jun-17 21:46
rahul199515-Jun-17 21:46 
GeneralRe: printing the customized data through printer in vc++ 6.0 dialog based. Pin
Richard MacCutchan15-Jun-17 21:53
mveRichard MacCutchan15-Jun-17 21:53 
GeneralRe: printing the customized data through printer in vc++ 6.0 dialog based. Pin
rahul199516-Jun-17 0:09
rahul199516-Jun-17 0:09 
GeneralRe: printing the customized data through printer in vc++ 6.0 dialog based. Pin
Richard MacCutchan16-Jun-17 2:45
mveRichard MacCutchan16-Jun-17 2:45 
GeneralRe: printing the customized data through printer in vc++ 6.0 dialog based. Pin
rahul199518-Jun-17 21:20
rahul199518-Jun-17 21:20 
GeneralRe: printing the customized data through printer in vc++ 6.0 dialog based. Pin
Richard MacCutchan18-Jun-17 22:44
mveRichard MacCutchan18-Jun-17 22:44 
GeneralRe: printing the customized data through printer in vc++ 6.0 dialog based. Pin
rahul199515-Jun-17 20:16
rahul199515-Jun-17 20:16 
Questioncreate c++ dll gui and call it on c# Pin
Member 1313968619-Apr-17 21:15
Member 1313968619-Apr-17 21:15 
AnswerRe: create c++ dll gui and call it on c# Pin
Richard MacCutchan19-Apr-17 23:16
mveRichard MacCutchan19-Apr-17 23:16 
GeneralRe: create c++ dll gui and call it on c# Pin
logicalz14-May-17 7:47
logicalz14-May-17 7:47 
QuestionRe: create c++ dll gui and call it on c# Pin
Gerry Schmitz12-May-17 8:51
mveGerry Schmitz12-May-17 8:51 
Questionmultithread Pin
Member 1306030229-Mar-17 22:42
Member 1306030229-Mar-17 22:42 
AnswerRe: multithread Pin
Jochen Arndt29-Mar-17 23:55
professionalJochen Arndt29-Mar-17 23:55 
Sample code can be found in the web.

We are going to help if you have already tried something and got stuck. But we will not write the code for you.

But there is a simple approach:
Write a function that calculates the max. for a passed range (start pointer and number of items) and stores the maximum value in another array. Create a number of threads that calls that function passing sub ranges of your array. When all threads has finished call the function again passing the array containing the results.

An alternative solution would not use an additional array but a shared variable to hold the maxmimum value found so far. But then the threads must use locking which is probably not very efficient.

modified 30-Mar-17 6:01am.

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.