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

C / C++ / MFC

 
GeneralRe: launch 2 exes with one..... Pin
James R. Twine16-Jan-07 8:45
James R. Twine16-Jan-07 8:45 
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 
Hi, again a question about me with my IOCP skills Smile | :)
ok, the situation is the following, everything works perfectly except for 1 thing, a really weird thing if you ask me.
I'm currently testing so i use 1 WorkerThread with 1 udp virtual connection at the time.
When i do a WSARecvFrom, i should recieve a buffer with a size of lets say 600 bytes. This hapends idd but later, here is my thing:

GetQueuedCompletionStatus(...)<br />
DWORD ioSize = 0;<br />
case RequestSend:<br />
//WSASendTo and set to AfterSend<br />
break;<br />
case AfterSend:<br />
//Sended 8 bytes, now recieve with WSARecvFrom and set to AfterRecieve<br />
ioSize = static_cast<DWORD>(lpOverlapped->InternalHigh);<br />
break;<br />
case AfterRecieve:<br />
ioSize = static_cast<DWORD>(lpOverlapped->InternalHigh);<br />
//do rest


This is the things i do, now it happends that in AfterRecieve, ioSize is the same as the size when i sended. better said, the data aint recieved yet, however i do get a notification that the data is recieved. When i put a breakpoint at that point, i see that the data is deliverd, to pull a conclusion, I get a notification when the data is recieved well it isnt untill i put a breakpoint at that place, really weird
weird story so:

dwIoSize = static_cast<DWORD>(ptrOverlapped->InternalHigh);<br />
ptrSession->incRecvBytes(dwIoSize);<br />
if ((iTemp = ptrGameClass->UnpackServerInfo(ptrSession->getNDServer(), &objToolset)) == 0){//Session is finished!<br />
    pThis->FinishGame(ptrSession->getNDServer());<br />
    __REPORT("SUCCEEDED");<br />
}<br />
else if (iTemp < 0){<br />
    __REPORT("%s->UnpackServerInfo() failed", ptrGameClass->Gamename());<br />
}


To make it even more clear, whenever i put a breakpoint at: ptrSession->incRecvBytes(dwIoSize);, dwIoSize is 8 as the send buffer, but ptrOverlapped->InternalHigh is like 600 bytes.
When i do reports, it just reports that ptrOverlapped->InternalHigh is 8
AnswerRe: IOCP+weird latency problem [modified] Pin
Mark Salsbery16-Jan-07 7:13
Mark Salsbery16-Jan-07 7:13 
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 

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.