Click here to Skip to main content
15,896,497 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionThunks Pin
Waldermort16-Jan-07 7:16
Waldermort16-Jan-07 7:16 
AnswerRe: Thunks Pin
James R. Twine16-Jan-07 7:28
James R. Twine16-Jan-07 7:28 
QuestionCan I raise Exception in one thread and handle it in another? Pin
chilituna16-Jan-07 6:51
chilituna16-Jan-07 6:51 
AnswerRe: Can I raise Exception in one thread and handle it in another? Pin
James R. Twine16-Jan-07 7:03
James R. Twine16-Jan-07 7:03 
QuestionRe: Can I raise Exception in one thread and handle it in another? Pin
David Crow16-Jan-07 7:33
David Crow16-Jan-07 7:33 
AnswerRe: Can I raise Exception in one thread and handle it in another? Pin
Michael Dunn16-Jan-07 8:28
sitebuilderMichael Dunn16-Jan-07 8:28 
QuestionIOCP+weird latency problem Pin
Polity4h16-Jan-07 6:32
Polity4h16-Jan-07 6:32 
AnswerRe: IOCP+weird latency problem [modified] Pin
Mark Salsbery16-Jan-07 7:13
Mark Salsbery16-Jan-07 7:13 
For socket operations you should't be touching (or looking at) anything in the OVERLAPPED
structure. None of it applies to IOCPs and especially the "Internal" fields which are for use
by the system so they have NO meaning to your code.

Ok, you can look at them, but don't expect any specific values Smile | :)

I would suggest clearing the OVERLAPPED struct to 0s before every operation.
If you need to add your own fields (I'm not sure how one would do overlapped ops without doing
this) then define your own struct which includes an OVERLAPPED struct.

You may have seen these, but here's a couple articles that helped me alot when I first used an
IOCP...

Writing Windows NT Server Applications in MFC Using I/O Completion Ports [^]

Windows Sockets 2.0: Write Scalable Winsock Apps Using Completion Ports[^]

INFO: Design Issues When Using IOCP in a Winsock Server[^]

And this one's in the online help - <--edit



-- modified at 13:21 Tuesday 16th January, 2007
QuestionCode Snippets availability for C++ in VS2005. Pin
oleg6316-Jan-07 5:45
professionaloleg6316-Jan-07 5:45 
AnswerRe: Code Snippets availability for C++ in VS2005. Pin
Christian Graus16-Jan-07 8:38
protectorChristian Graus16-Jan-07 8:38 
GeneralRe: Code Snippets availability for C++ in VS2005. Pin
James R. Twine16-Jan-07 9:05
James R. Twine16-Jan-07 9:05 
GeneralRe: Code Snippets availability for C++ in VS2005. Pin
S Douglas16-Jan-07 23:01
professionalS Douglas16-Jan-07 23:01 
AnswerRe: Code Snippets availability for C++ in VS2005. Pin
S Douglas16-Jan-07 23:00
professionalS Douglas16-Jan-07 23:00 
QuestionVideo Overlay in MFC Pin
BoroDave16-Jan-07 4:30
BoroDave16-Jan-07 4:30 
AnswerRe: Video Overlay in MFC Pin
Mark Salsbery16-Jan-07 7:28
Mark Salsbery16-Jan-07 7:28 
QuestionSelect static control when overlapped Pin
Vishvanathan16-Jan-07 3:18
Vishvanathan16-Jan-07 3:18 
AnswerRe: Select static control when overlapped Pin
Rage16-Jan-07 5:44
professionalRage16-Jan-07 5:44 
GeneralRe: Select static control when overlapped Pin
James R. Twine16-Jan-07 7:01
James R. Twine16-Jan-07 7:01 
AnswerRe: Select static control when overlapped Pin
James R. Twine16-Jan-07 7:01
James R. Twine16-Jan-07 7:01 
QuestionNeed some help with visual c++ and sql2000 ado connection Pin
XTr1NiTy16-Jan-07 2:39
XTr1NiTy16-Jan-07 2:39 
AnswerRe: Need some help with visual c++ and sql2000 ado connection Pin
David Crow16-Jan-07 2:48
David Crow16-Jan-07 2:48 
AnswerRe: Need some help with visual c++ and sql2000 ado connection Pin
KarstenK16-Jan-07 2:55
mveKarstenK16-Jan-07 2:55 
GeneralRe: Need some help with visual c++ and sql2000 ado connection Pin
XTr1NiTy16-Jan-07 3:04
XTr1NiTy16-Jan-07 3:04 
GeneralRe: Need some help with visual c++ and sql2000 ado connection Pin
prasad_som16-Jan-07 3:07
prasad_som16-Jan-07 3:07 
GeneralRe: Need some help with visual c++ and sql2000 ado connection Pin
XTr1NiTy16-Jan-07 3:12
XTr1NiTy16-Jan-07 3:12 

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.