Click here to Skip to main content
15,929,253 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: WTL and Visual Studio .NET Pin
25-Mar-02 23:58
suss25-Mar-02 23:58 
GeneralThread communication Pin
24-Mar-02 23:16
suss24-Mar-02 23:16 
GeneralRe: Thread communication Pin
Tomasz Sowinski24-Mar-02 23:59
Tomasz Sowinski24-Mar-02 23:59 
GeneralRe: Thread communication Pin
Joaquín M López Muñoz25-Mar-02 0:10
Joaquín M López Muñoz25-Mar-02 0:10 
GeneralRe: Thread communication Pin
Le centriste25-Mar-02 4:02
Le centriste25-Mar-02 4:02 
GeneralQuestion on CSocket Pin
24-Mar-02 22:51
suss24-Mar-02 22:51 
GeneralRe: Question on CSocket Pin
24-Mar-02 23:20
suss24-Mar-02 23:20 
GeneralThreads and share one array (global) Pin
24-Mar-02 22:29
suss24-Mar-02 22:29 
Hi,

I have a problem:

1. Thread (A) for users (1 to 100 users, so can have max 100 threads here)
2. Thread (B) for array_function
3. Global array - store all input value and work liked a queue for those inputs....(line-up)


Thread (B) keeps retreiving the item from array for input data. Thread (A) keeps sending new inputs to the array. If Thread (B) processed one input data in the queue, it will return a signal back to thread (A). Otherwise, those input data is waiting...... if the waiting time is too long, thread (A) will abort that input data.

Is it possible to implement? Can I use WaitForSingleObject(ThreadB, 5000) to do the time-out stuff?

How to return value (let say boolean flag) from thread B to thread A?

Thanks!!!!
GeneralRe: Threads and share one array (global) Pin
Aggtaa25-Mar-02 3:54
Aggtaa25-Mar-02 3:54 
QuestionHow to change the cursor to IDC_HAND only when the mouse is on a button ? Pin
adara24-Mar-02 21:02
adara24-Mar-02 21:02 
AnswerRe: How to change the cursor to IDC_HAND only when the mouse is on a button ? Pin
Paul M Watt24-Mar-02 21:41
mentorPaul M Watt24-Mar-02 21:41 
GeneralRe: How to change the cursor to IDC_HAND only when the mouse is on a button ? Pin
adara24-Mar-02 22:07
adara24-Mar-02 22:07 
GeneralRun code on remote computer Pin
Mr_Byte24-Mar-02 20:22
Mr_Byte24-Mar-02 20:22 
GeneralRe: Run code on remote computer Pin
alex.barylski24-Mar-02 22:55
alex.barylski24-Mar-02 22:55 
GeneralRegistering ActiveX Control Pin
vin24-Mar-02 20:17
vin24-Mar-02 20:17 
GeneralRe: Registering ActiveX Control Pin
Joaquín M López Muñoz24-Mar-02 20:31
Joaquín M López Muñoz24-Mar-02 20:31 
GeneralRe: Registering ActiveX Control Pin
vin24-Mar-02 20:32
vin24-Mar-02 20:32 
GeneralRe: Registering ActiveX Control Pin
Joaquín M López Muñoz24-Mar-02 20:42
Joaquín M López Muñoz24-Mar-02 20:42 
GeneralRe: Registering ActiveX Control Pin
vin24-Mar-02 20:50
vin24-Mar-02 20:50 
GeneralNeed assistance Pin
binnu24-Mar-02 20:18
binnu24-Mar-02 20:18 
GeneralRe: Need assistance Pin
wangyiming25-Mar-02 0:36
wangyiming25-Mar-02 0:36 
GeneralRe: Need assistance Pin
binnu25-Mar-02 13:11
binnu25-Mar-02 13:11 
GeneralRe: Need assistance Pin
binnu25-Mar-02 14:42
binnu25-Mar-02 14:42 
GeneralUrgent Help Pin
binnu24-Mar-02 20:17
binnu24-Mar-02 20:17 
QuestionWhat is the problem in this random algorithm Pin
24-Mar-02 19:40
suss24-Mar-02 19:40 

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.