Click here to Skip to main content
16,006,006 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Caption (title bar) buttons Pin
Dominik Reichl27-Jan-07 6:25
Dominik Reichl27-Jan-07 6:25 
QuestionHow do you fix code that works on everything but the listview you need? Pin
___Charles___26-Jan-07 17:41
___Charles___26-Jan-07 17:41 
AnswerRe: How do you fix code that works on everything but the listview you need? Pin
Mike O'Neill27-Jan-07 12:53
Mike O'Neill27-Jan-07 12:53 
QuestionInvoke another exe from currently running exe Pin
kiranin26-Jan-07 17:36
kiranin26-Jan-07 17:36 
AnswerRe: Invoke another exe from currently running exe Pin
ThatsAlok26-Jan-07 19:32
ThatsAlok26-Jan-07 19:32 
QuestionCOM in VC++ Pin
deeps_cute26-Jan-07 17:02
deeps_cute26-Jan-07 17:02 
QuestionVisual C++ MFC WinSock 2 Reference Pin
Obi Wan 226-Jan-07 13:50
Obi Wan 226-Jan-07 13:50 
AnswerRe: Visual C++ MFC WinSock 2 Reference Pin
Mark Salsbery26-Jan-07 14:03
Mark Salsbery26-Jan-07 14:03 
With your experience I don't see any reason to use the MFC wrappers, especially CSocket.

You should also have a good grasp on blocking/non-blocking sockets.

Whether to use overlapped, synchronous, blocking, or unblocking all depend on the thread model
you're using. An IOCP uses all overlapped operations.

An IOCP works well for servers with many connections to avoid the 1 thread per connection
scenario. If you have 1000 simultaneous connections and there's only 4 processors on the server
then having 1000 threads is a waste of resources. An IOCP eliminates that waste by using a pool
of generic threads (the threads aren't associated with any connection).

Hope this helps a little.
Mark

*EDIT* Lots of info here: Windows Sockets 2[^]



-- modified at 20:08 Friday 26th January, 2007
GeneralRe: Visual C++ MFC WinSock 2 Reference Pin
Obi Wan 227-Jan-07 4:47
Obi Wan 227-Jan-07 4:47 
GeneralRe: Visual C++ MFC WinSock 2 Reference Pin
Mark Salsbery27-Jan-07 7:30
Mark Salsbery27-Jan-07 7:30 
QuestionCListView; getting rid of spurious horizontal scrollbar [modified] Pin
Joe Woodbury26-Jan-07 12:34
professionalJoe Woodbury26-Jan-07 12:34 
AnswerRe: CListView; getting rid of spurious horizontal scrollbar Pin
Ravi Bhavnani26-Jan-07 12:59
professionalRavi Bhavnani26-Jan-07 12:59 
GeneralRe: CListView; getting rid of spurious horizontal scrollbar Pin
Joe Woodbury26-Jan-07 13:06
professionalJoe Woodbury26-Jan-07 13:06 
GeneralRe: CListView; getting rid of spurious horizontal scrollbar Pin
Ravi Bhavnani26-Jan-07 13:09
professionalRavi Bhavnani26-Jan-07 13:09 
GeneralRe: CListView; getting rid of spurious horizontal scrollbar Pin
Joe Woodbury26-Jan-07 13:23
professionalJoe Woodbury26-Jan-07 13:23 
GeneralRe: CListView; getting rid of spurious horizontal scrollbar Pin
Ravi Bhavnani26-Jan-07 13:27
professionalRavi Bhavnani26-Jan-07 13:27 
AnswerRe: CListView; getting rid of spurious horizontal scrollbar Pin
Mark Salsbery26-Jan-07 13:54
Mark Salsbery26-Jan-07 13:54 
GeneralRe: CListView; getting rid of spurious horizontal scrollbar Pin
Joe Woodbury26-Jan-07 15:12
professionalJoe Woodbury26-Jan-07 15:12 
GeneralRe: CListView; getting rid of spurious horizontal scrollbar Pin
Mark Salsbery26-Jan-07 16:27
Mark Salsbery26-Jan-07 16:27 
GeneralRe: CListView; getting rid of spurious horizontal scrollbar Pin
Joe Woodbury27-Jan-07 11:34
professionalJoe Woodbury27-Jan-07 11:34 
GeneralRe: CListView; getting rid of spurious horizontal scrollbar Pin
Mark Salsbery27-Jan-07 11:42
Mark Salsbery27-Jan-07 11:42 
GeneralRe: CListView; getting rid of spurious horizontal scrollbar Pin
Joe Woodbury27-Jan-07 12:24
professionalJoe Woodbury27-Jan-07 12:24 
GeneralRe: CListView; getting rid of spurious horizontal scrollbar Pin
Mark Salsbery27-Jan-07 11:49
Mark Salsbery27-Jan-07 11:49 
GeneralRe: CListView; getting rid of spurious horizontal scrollbar Pin
Joe Woodbury27-Jan-07 12:32
professionalJoe Woodbury27-Jan-07 12:32 
GeneralRe: CListView; getting rid of spurious horizontal scrollbar Pin
Joe Woodbury27-Jan-07 13:01
professionalJoe Woodbury27-Jan-07 13:01 

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.