Click here to Skip to main content
15,888,116 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: MFC application has encountered a problem and need to close Pin
David Crow6-May-09 3:14
David Crow6-May-09 3:14 
QuestionPartial Specialization of Templated Class Member Function Pin
Jmuulian5-May-09 19:26
Jmuulian5-May-09 19:26 
AnswerRe: Partial Specialization of Templated Class Member Function Pin
«_Superman_»5-May-09 20:04
professional«_Superman_»5-May-09 20:04 
AnswerRe: Partial Specialization of Templated Class Member Function Pin
Stuart Dootson6-May-09 2:14
professionalStuart Dootson6-May-09 2:14 
QuestionOpening a Visual Studio .NET application in Visual Studio C++ Pin
SivaGK5-May-09 19:26
SivaGK5-May-09 19:26 
AnswerRe: Opening a Visual Studio .NET application in Visual Studio C++ Pin
«_Superman_»5-May-09 19:29
professional«_Superman_»5-May-09 19:29 
AnswerRe: Opening a Visual Studio .NET application in Visual Studio C++ Pin
_AnsHUMAN_ 5-May-09 19:47
_AnsHUMAN_ 5-May-09 19:47 
QuestionOne doubt Pin
Deepu Antony5-May-09 19:12
Deepu Antony5-May-09 19:12 
Hi everybody

In my application i want to receive some data and after reeving the data i have to perform some operation.
For the data to come it will take some 0 to 3 sec.

So i am using Sleep(3000) to wait the data to come.But some times the data will come in less than 1 second.So unnecessary i have to wait.

Before i was using this algorithm

While(dataHasNotCome)
{
//wait
}
But it failed as the data may not come sometimes and be in infinite loop.

I can use a counter and increment it till a particular value and stop the loop.
Other than that is there any other method.


Regards
Deepu
AnswerRe: One doubt Pin
«_Superman_»5-May-09 19:27
professional«_Superman_»5-May-09 19:27 
GeneralRe: One doubt Pin
Deepu Antony5-May-09 19:47
Deepu Antony5-May-09 19:47 
GeneralRe: One doubt Pin
«_Superman_»5-May-09 19:53
professional«_Superman_»5-May-09 19:53 
GeneralRe: One doubt Pin
Deepu Antony5-May-09 20:11
Deepu Antony5-May-09 20:11 
AnswerRe: One doubt Pin
Taran95-May-09 21:35
Taran95-May-09 21:35 
AnswerRe: One doubt Pin
KarstenK5-May-09 23:16
mveKarstenK5-May-09 23:16 
AnswerRe: One doubt Pin
Stuart Dootson6-May-09 2:16
professionalStuart Dootson6-May-09 2:16 
AnswerRe: One doubt Pin
David Crow6-May-09 3:15
David Crow6-May-09 3:15 
Questionin CExplorer1 class, how to post your form data to the server,as login data. Pin
cwj_5-May-09 16:20
cwj_5-May-09 16:20 
AnswerRe: in CExplorer1 class, how to post your form data to the server,as login data. Pin
Madhu Nair5-May-09 18:59
Madhu Nair5-May-09 18:59 
QuestionWhen IS CFont create for the Bottomless CRichEdit ???? Pin
ForNow5-May-09 13:28
ForNow5-May-09 13:28 
AnswerRe: When IS CFont create for the Bottomless CRichEdit ???? Pin
Stuart Dootson5-May-09 14:41
professionalStuart Dootson5-May-09 14:41 
GeneralRe: When IS CFont create for the Bottomless CRichEdit ???? Pin
ForNow5-May-09 14:51
ForNow5-May-09 14:51 
GeneralRe: When IS CFont create for the Bottomless CRichEdit ???? Pin
Stuart Dootson5-May-09 15:14
professionalStuart Dootson5-May-09 15:14 
GeneralRe: When IS CFont create for the Bottomless CRichEdit ???? Pin
ForNow5-May-09 15:20
ForNow5-May-09 15:20 
AnswerRe: When IS CFont create for the Bottomless CRichEdit ???? Pin
Randor 5-May-09 16:17
professional Randor 5-May-09 16:17 
QuestionRe: When IS CFont create for the Bottomless CRichEdit ???? Pin
David Crow5-May-09 16:34
David Crow5-May-09 16:34 

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.