Click here to Skip to main content
15,913,250 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralConverts TCHAR to Managed String Pin
Ignacio Varas2-Apr-02 0:03
Ignacio Varas2-Apr-02 0:03 
GeneralRe: Converts TCHAR to Managed String Pin
2-Apr-02 2:31
suss2-Apr-02 2:31 
GeneralRe: Converts TCHAR to Managed String Pin
Le centriste2-Apr-02 6:44
Le centriste2-Apr-02 6:44 
GeneralRe: Converts TCHAR to Managed String Pin
Tim Smith2-Apr-02 7:28
Tim Smith2-Apr-02 7:28 
Questionhow to Maximize control ? Pin
2-Apr-02 0:01
suss2-Apr-02 0:01 
AnswerRe: how to Maximize control ? Pin
2-Apr-02 1:06
suss2-Apr-02 1:06 
QuestionHow can I retrieve the documents icon? Pin
AmarB2-Apr-02 0:02
AmarB2-Apr-02 0:02 
AnswerRe: How can I retrieve the documents icon? Pin
Mukkie2-Apr-02 5:25
Mukkie2-Apr-02 5:25 
GeneralToolbar in ActiveX control Pin
Tzoockee1-Apr-02 23:44
Tzoockee1-Apr-02 23:44 
GeneralRe: Toolbar in ActiveX control Pin
KaЯl2-Apr-02 4:44
KaЯl2-Apr-02 4:44 
GeneralMessage Removed Pin
1-Apr-02 22:42
suss1-Apr-02 22:42 
GeneralRe: Strings and strange characters Pin
Joaquín M López Muñoz1-Apr-02 22:44
Joaquín M López Muñoz1-Apr-02 22:44 
GeneralRe: Strings and strange characters Pin
1-Apr-02 23:51
suss1-Apr-02 23:51 
GeneralRe: Strings and strange characters Pin
Michael Dunn2-Apr-02 4:46
sitebuilderMichael Dunn2-Apr-02 4:46 
GeneralStrings and strange characters Pin
1-Apr-02 22:37
suss1-Apr-02 22:37 
GeneralOups sorry, bad post !! Pin
1-Apr-02 22:47
suss1-Apr-02 22:47 
GeneralHey-now to all registry Gurus! Pin
BlackSmith1-Apr-02 22:29
BlackSmith1-Apr-02 22:29 
GeneralRe: Hey-now to all registry Gurus! Pin
Jon Hulatt1-Apr-02 23:35
Jon Hulatt1-Apr-02 23:35 
GeneralMemory management Pin
Dominik Reichl1-Apr-02 22:21
Dominik Reichl1-Apr-02 22:21 
GeneralRe: Memory management Pin
Christian Graus1-Apr-02 22:26
protectorChristian Graus1-Apr-02 22:26 
GeneralRe: Memory management Pin
Jon Hulatt1-Apr-02 23:40
Jon Hulatt1-Apr-02 23:40 
GeneralMultithreading Synchronization Pin
1-Apr-02 21:19
suss1-Apr-02 21:19 
Hi,

I use VC++ 6.0 (SP5) (i use MFC), and wish to design a multithreaded application.
I have the following problem :

for (int i = 0; i < N; i++)
{

// Launch may be 4 or 5 threads
AfxBeginThread(thread1);
AfxBeginThread(thread2);
AfxBeginThread(thread3);
AfxBeginThread(thread4);

}

but i would like to execute ONLY ONE thread at time. (if i do not synchronize them, i will have 4*N threads at the same time !!!).
I am confused : what should i use : CSemaphore, CEvent, WaitForSingleObject(), WaitForMultipleObjects()....

Can you help me !

Thanks.
GeneralRe: Multithreading Synchronization Pin
Joaquín M López Muñoz1-Apr-02 21:28
Joaquín M López Muñoz1-Apr-02 21:28 
GeneralRe: Multithreading Synchronization Pin
Jon Hulatt1-Apr-02 23:41
Jon Hulatt1-Apr-02 23:41 
GeneralRe: Multithreading Synchronization Pin
Tim Smith2-Apr-02 2:11
Tim Smith2-Apr-02 2:11 

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.