Click here to Skip to main content
15,904,023 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Who has the file opened? Pin
David Crow23-Oct-09 10:22
David Crow23-Oct-09 10:22 
QuestionProperty Sheet OnOK only calls property page1 OnOK override? [modified] Pin
al250023-Oct-09 8:19
al250023-Oct-09 8:19 
AnswerRe: Property Sheet OnOK only calls property page1 OnOK override? Pin
al250023-Oct-09 9:26
al250023-Oct-09 9:26 
AnswerRe: Property Sheet OnOK only calls property page1 OnOK override? Pin
David Crow23-Oct-09 9:51
David Crow23-Oct-09 9:51 
GeneralRe: Property Sheet OnOK only calls property page1 OnOK override? Pin
al250023-Oct-09 11:56
al250023-Oct-09 11:56 
GeneralRe: Property Sheet OnOK only calls property page1 OnOK override? Pin
David Crow23-Oct-09 14:52
David Crow23-Oct-09 14:52 
GeneralRe: Property Sheet OnOK only calls property page1 OnOK override? Pin
al250023-Oct-09 18:35
al250023-Oct-09 18:35 
QuestionC++ troubles with basic openMP code. Pin
Andre_E_S23-Oct-09 6:41
Andre_E_S23-Oct-09 6:41 
Messing around trying to learn something and I'm having trouble seeing the time benefits in my openMP example.
Each array (pArray1 and pArray2) hold about 10meg of RGB bitmap data, bufferSize2 is the bmp file size. OpenMP is enabled in VS.

So I can run the following with or without #pragma and get the same 20Msec's or there about.
<br />
<br />
#pragma omp parallel for         //<-no impact on time<br />
  for(long loop=0;loop<bufferSize2;loop++)<br />
   pArrayResult[loop]= ~(pArray1[loop] - pArray2[loop]);<br />
<br />


I can try the common openMP example:
<br />
#pragma omp parallel<br />
{<br />
printf("hello world");<br />
}<br />


and never get something that looks like the example warning
helhelloo w world orld
I always get
hello world hello world

I can try
<br />
  #pragma omp parallel<br />
{ <br />
	int ID=omp_get_thread_num();<br />
        printf("Hello(%d)",ID);<br />
	printf("world(%d)",ID);<br />
}<br />

and the result is always sequential
hello(0)world(0) hello(1) world(1)

Anyone have an idea as to why everything seems sequential? What am I doing wrong?
Thanks,
Andre
AnswerRe: C++ troubles with basic openMP code. Pin
David Crow23-Oct-09 7:06
David Crow23-Oct-09 7:06 
GeneralRe: C++ troubles with basic openMP code. Pin
Andre_E_S23-Oct-09 8:25
Andre_E_S23-Oct-09 8:25 
QuestionUnicode and Rich Edit Control Pin
Software200723-Oct-09 5:47
Software200723-Oct-09 5:47 
AnswerRe: Unicode and Rich Edit Control Pin
Michael Schubert23-Oct-09 6:47
Michael Schubert23-Oct-09 6:47 
GeneralRe: Unicode and Rich Edit Control Pin
Software200723-Oct-09 7:13
Software200723-Oct-09 7:13 
GeneralRe: Unicode and Rich Edit Control Pin
Nemanja Trifunovic23-Oct-09 8:30
Nemanja Trifunovic23-Oct-09 8:30 
GeneralRe: Unicode and Rich Edit Control Pin
Software200723-Oct-09 8:53
Software200723-Oct-09 8:53 
GeneralRe: Unicode and Rich Edit Control Pin
Michael Schubert23-Oct-09 10:45
Michael Schubert23-Oct-09 10:45 
QuestionCHAR[260] to char* Pin
Nicola Curran23-Oct-09 4:56
Nicola Curran23-Oct-09 4:56 
AnswerRe: CHAR[260] to char* Pin
Rajesh R Subramanian23-Oct-09 5:03
professionalRajesh R Subramanian23-Oct-09 5:03 
GeneralRe: CHAR[260] to char* Pin
Nicola Curran23-Oct-09 5:14
Nicola Curran23-Oct-09 5:14 
AnswerRe: CHAR[260] to char* Pin
David Crow23-Oct-09 5:12
David Crow23-Oct-09 5:12 
GeneralRe: CHAR[260] to char* Pin
Nicola Curran23-Oct-09 5:21
Nicola Curran23-Oct-09 5:21 
GeneralRe: CHAR[260] to char* Pin
David Crow23-Oct-09 5:27
David Crow23-Oct-09 5:27 
AnswerRe: CHAR[260] to char* Pin
Richard MacCutchan23-Oct-09 5:14
mveRichard MacCutchan23-Oct-09 5:14 
GeneralRe: CHAR[260] to char* Pin
Nicola Curran23-Oct-09 5:16
Nicola Curran23-Oct-09 5:16 
GeneralRe: CHAR[260] to char* Pin
Richard MacCutchan23-Oct-09 5:41
mveRichard MacCutchan23-Oct-09 5:41 

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.