Click here to Skip to main content
15,347,383 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: CStringArray reference Pin
Cedric Moonen23-May-11 20:49
MemberCedric Moonen23-May-11 20:49 
GeneralRe: CStringArray reference Pin
_Flaviu23-May-11 23:04
Member_Flaviu23-May-11 23:04 
QuestionMFC WebBrowser2 Control, PDF crash Pin
kitkat1201223-May-11 9:15
Memberkitkat1201223-May-11 9:15 
QuestionCStringArray in CMap ? Pin
_Flaviu23-May-11 8:25
Member_Flaviu23-May-11 8:25 
AnswerRe: CStringArray in CMap ? Pin
David Crow23-May-11 8:50
MemberDavid Crow23-May-11 8:50 
GeneralRe: CStringArray in CMap ? [modified] Pin
_Flaviu23-May-11 9:07
Member_Flaviu23-May-11 9:07 
GeneralRe: CStringArray in CMap ? Pin
Stefan_Lang23-May-11 23:42
mveStefan_Lang23-May-11 23:42 
QuestionNeed suggestion for thread test Pin
includeh1023-May-11 5:32
Memberincludeh1023-May-11 5:32 
2 threads call same global function at almost same time, the global function looks like
void MyFunction(int iWho)
{
   CString cs;
   cs.Format("%d",iWho);
   
   edit.SetWindowText(cs);
   edit.RedrawWindow();
   Sleep(3000);
   
   edit.SetWindowText(cs);
   edit.RedrawWindow();
   Sleep(3000);
   
   edit.SetWindowText(cs);
   edit.RedrawWindow();
   Sleep(3000);
}


2 threads pass param 0 and 1 respectively to the function.

I hope that I can see 2 treads call the function in turn.
In other words, '0' and '1' are displayed in turn in some way.

But, at test, '1' appears only when all of 3 '0' are displayed.

Any suggestion for the "in turn" thread test?

.
QuestionRe: Need suggestion for thread test Pin
David Crow23-May-11 5:58
MemberDavid Crow23-May-11 5:58 
AnswerRe: Need suggestion for thread test Pin
CPallini23-May-11 6:06
mveCPallini23-May-11 6:06 
GeneralRe: Need suggestion for thread test Pin
includeh1023-May-11 6:19
Memberincludeh1023-May-11 6:19 
GeneralRe: Need suggestion for thread test Pin
CPallini23-May-11 9:14
mveCPallini23-May-11 9:14 
AnswerRe: Need suggestion for thread test Pin
Luc Pattyn23-May-11 6:18
sitebuilderLuc Pattyn23-May-11 6:18 
GeneralRe: Need suggestion for thread test Pin
includeh1023-May-11 6:23
Memberincludeh1023-May-11 6:23 
GeneralRe: Need suggestion for thread test Pin
CPallini23-May-11 8:06
mveCPallini23-May-11 8:06 
GeneralRe: Need suggestion for thread test Pin
Maximilien24-May-11 4:15
MemberMaximilien24-May-11 4:15 
AnswerRe: Need suggestion for thread test Pin
Stefan_Lang24-May-11 0:06
mveStefan_Lang24-May-11 0:06 
QuestionCFileDialog Pin
sarfaraznawaz23-May-11 3:19
Membersarfaraznawaz23-May-11 3:19 
QuestionRe: CFileDialog Pin
David Crow23-May-11 3:50
MemberDavid Crow23-May-11 3:50 
AnswerRe: CFileDialog Pin
Richard MacCutchan23-May-11 4:57
mveRichard MacCutchan23-May-11 4:57 
GeneralRe: CFileDialog Pin
sarfaraznawaz23-May-11 19:16
Membersarfaraznawaz23-May-11 19:16 
GeneralRe: CFileDialog Pin
Chandrasekharan P23-May-11 19:29
MemberChandrasekharan P23-May-11 19:29 
GeneralRe: CFileDialog Pin
sarfaraznawaz25-May-11 19:33
Membersarfaraznawaz25-May-11 19:33 
AnswerRe: CFileDialog Pin
abhishek.biradar23-May-11 19:42
Memberabhishek.biradar23-May-11 19:42 
QuestionRunning a c++ program Pin
tasumisra23-May-11 1:22
Membertasumisra23-May-11 1:22 

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.