Click here to Skip to main content
15,900,973 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: CDC::DrawDragRect Pin
bob1697227-Aug-07 10:45
bob1697227-Aug-07 10:45 
GeneralRe: CDC::DrawDragRect Pin
Mark Salsbery27-Aug-07 11:07
Mark Salsbery27-Aug-07 11:07 
QuestionHow to add GDI+ to a Project? Pin
TheShihan27-Aug-07 2:25
TheShihan27-Aug-07 2:25 
AnswerRe: How to add GDI+ to a Project? Pin
bob1697227-Aug-07 3:37
bob1697227-Aug-07 3:37 
GeneralRe: How to add GDI+ to a Project? Pin
TheShihan27-Aug-07 4:09
TheShihan27-Aug-07 4:09 
Questionadding menu item to right click context menu Pin
Dhiraj kumar Saini27-Aug-07 2:01
Dhiraj kumar Saini27-Aug-07 2:01 
AnswerRe: adding menu item to right click context menu Pin
Naveen27-Aug-07 2:32
Naveen27-Aug-07 2:32 
QuestionDetecting response/acknowledgement timeout in Winsock Pin
__yash__27-Aug-07 1:09
professional__yash__27-Aug-07 1:09 
I send a command to a machine once, to which it sends out continuos data output. So OnReceive() event gets triggered. Now my problem is i need to set a timeout duration for this continuous string i receive. For e.g: if i do not receive any string for 2 secs then I display a MessageBox()
How can i achieve this??
Found this example on msdn but how do i execute these lines continuously?

DWORD dwStart = GetTickCount();<br />
// Stop if this has taken too long<br />
if( GetTickCount() - dwStart >= TIMELIMIT )<br />
    Cancel();

Answeruse CTime or clock_t Pin
chandu00427-Aug-07 1:41
chandu00427-Aug-07 1:41 
GeneralRe: use CTime or clock_t Pin
__yash__27-Aug-07 1:51
professional__yash__27-Aug-07 1:51 
AnswerRe: Detecting response/acknowledgement timeout in Winsock Pin
Cedric Moonen27-Aug-07 2:09
Cedric Moonen27-Aug-07 2:09 
GeneralRe: Detecting response/acknowledgement timeout in Winsock Pin
__yash__27-Aug-07 4:46
professional__yash__27-Aug-07 4:46 
AnswerRe: Detecting response/acknowledgement timeout in Winsock Pin
Naveen27-Aug-07 2:51
Naveen27-Aug-07 2:51 
Question2 Different idl files 2 different outputs Pin
sawerr27-Aug-07 0:44
sawerr27-Aug-07 0:44 
AnswerRe: 2 Different idl files 2 different outputs Pin
KarstenK27-Aug-07 2:20
mveKarstenK27-Aug-07 2:20 
GeneralRe: 2 Different idl files 2 different outputs Pin
sawerr27-Aug-07 3:00
sawerr27-Aug-07 3:00 
GeneralRe: 2 Different idl files 2 different outputs Pin
KarstenK27-Aug-07 3:15
mveKarstenK27-Aug-07 3:15 
Questionbackground of picture static control Pin
vasu_sri26-Aug-07 23:41
vasu_sri26-Aug-07 23:41 
AnswerRe: background of picture static control Pin
Roger Broomfield27-Aug-07 0:26
Roger Broomfield27-Aug-07 0:26 
QuestionReading mrt.log file Pin
Manasi D26-Aug-07 21:26
Manasi D26-Aug-07 21:26 
AnswerRe: Reading mrt.log file Pin
Naveen26-Aug-07 21:48
Naveen26-Aug-07 21:48 
Questionfile path's Pin
Waldermort26-Aug-07 20:58
Waldermort26-Aug-07 20:58 
AnswerRe: file path's Pin
toxcct26-Aug-07 21:10
toxcct26-Aug-07 21:10 
GeneralRe: file path's Pin
Waldermort26-Aug-07 21:16
Waldermort26-Aug-07 21:16 
QuestionDiff b/w Copy constructor & Assignment operator Pin
prashant pissey26-Aug-07 20:49
prashant pissey26-Aug-07 20:49 

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.