Click here to Skip to main content
15,895,746 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: my icon in system tray always visible Pin
Member 104023906-May-14 10:06
professionalMember 104023906-May-14 10:06 
GeneralRe: my icon in system tray always visible Pin
Richard MacCutchan6-May-14 10:19
mveRichard MacCutchan6-May-14 10:19 
GeneralRe: my icon in system tray always visible Pin
Member 104023906-May-14 11:05
professionalMember 104023906-May-14 11:05 
QuestionTo fix the first column of ClistView grid control Pin
sma123#2-May-14 7:22
sma123#2-May-14 7:22 
GeneralRe: To fix the first column of ClistView grid control Pin
Richard MacCutchan2-May-14 7:33
mveRichard MacCutchan2-May-14 7:33 
Questionevent arithmetic Pin
bkelly137-Apr-14 15:27
bkelly137-Apr-14 15:27 
GeneralRe: event arithmetic Pin
Richard MacCutchan7-Apr-14 22:03
mveRichard MacCutchan7-Apr-14 22:03 
AnswerRe: event arithmetic Pin
pasztorpisti8-Apr-14 10:06
pasztorpisti8-Apr-14 10:06 
The logic is correct as WAIT_OBJECT_0, WAIT_OBJECT_0+1, ... are basically a constants and with switch it is valid to select between constants. However if your application is a high data rate app then be careful with the "linear search" of the WaitForMultipleObjects() function! It is actually documented (check its msdn page) that this function always returns the FIRST signaled handle from the array. This means if you have a "hyperactive" handle near the beginning of the array then the rest of the handles at higher indexes will starve. One technique to defend against this is "rotating" items in the array (or maybe a more fair algorithm is moving the currently signaled handle to the end of the array...).

In case of Overlapped IO I would rather suggest using an IO completion port (shortly: IOCP) that isn't hard to plumb on top of your existing overlapped code, the difficult part is the overlapped IO that is ready in your case.
GeneralRe: event arithmetic Pin
bkelly138-Apr-14 15:55
bkelly138-Apr-14 15:55 
GeneralRe: event arithmetic Pin
pasztorpisti8-Apr-14 22:57
pasztorpisti8-Apr-14 22:57 
QuestionHow to create a SDI in the activex? Pin
Lux11177-Apr-14 5:11
Lux11177-Apr-14 5:11 
Questionhow to add atlbase.h in VC++2008 Express? Pin
Member 1070176026-Mar-14 8:20
Member 1070176026-Mar-14 8:20 
AnswerRe: how to add atlbase.h in VC++2008 Express? Pin
Richard MacCutchan26-Mar-14 22:59
mveRichard MacCutchan26-Mar-14 22:59 
AnswerRe: how to add atlbase.h in VC++2008 Express? Pin
వేంకటనారాయణ(venkatmakam)27-Mar-14 2:16
వేంకటనారాయణ(venkatmakam)27-Mar-14 2:16 
GeneralRe: how to add atlbase.h in VC++2008 Express? Pin
Member 1070176027-Mar-14 4:12
Member 1070176027-Mar-14 4:12 
Questionhow to add web service in VC++2010 Pin
Shivanand Gupta22-Mar-14 2:51
Shivanand Gupta22-Mar-14 2:51 
AnswerRe: how to add web service in VC++2010 Pin
Richard MacCutchan22-Mar-14 3:04
mveRichard MacCutchan22-Mar-14 3:04 
GeneralRe: how to add web service in VC++2010 Pin
Shivanand Gupta23-Mar-14 19:48
Shivanand Gupta23-Mar-14 19:48 
GeneralRe: how to add web service in VC++2010 Pin
Richard MacCutchan23-Mar-14 22:55
mveRichard MacCutchan23-Mar-14 22:55 
QuestionHow to Custom Image on a Built-In Ribbon Button by c++ Pin
Member 1023648726-Feb-14 0:21
Member 1023648726-Feb-14 0:21 
QuestionUnit Testing Framework Pin
J_Me17-Feb-14 22:27
professionalJ_Me17-Feb-14 22:27 
QuestionWCHAR copy one char at a time Pin
bkelly132-Feb-14 8:15
bkelly132-Feb-14 8:15 
AnswerRe: WCHAR copy one char at a time Pin
Richard MacCutchan2-Feb-14 21:56
mveRichard MacCutchan2-Feb-14 21:56 
GeneralRe: WCHAR copy one char at a time Pin
bkelly133-Feb-14 15:01
bkelly133-Feb-14 15:01 
GeneralRe: WCHAR copy one char at a time Pin
Richard MacCutchan3-Feb-14 21:39
mveRichard MacCutchan3-Feb-14 21:39 

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.