gettime function in vc++

selva
Hi ,

Currently iam in a rfid project, so i have to get input from the user rfid
card and show their entry time with their name in mini 2440.Everything is
working fine except time.

This is my problem

i hve to use infinite loop to get the user input

while(1)
{
if(Rfid ==match1)
{
CString str="RAJUUUU";
m_name.Format(_T("%s"),str);
m_time = CTime::GetCurrentTime();
UpdateData(false);
}

}


hever name is updating correctlybut time i not updating why?

but if i usese break like this its working perfectly like the below code

while(1)
{
if(Rfid ==match1)
{
CString str="RAJUUUU";
m_name.Format(_T("%s"),str);
m_time = CTime::GetCurrentTime();
UpdateData(false);
Break;
}


But it is not my solution to my problem.I have to make it in infinite loop
pls help................

}

domodom
Hello Selva, 
You gave me a wrong email address when you directly contacted me...
Try to add the following line in your loop :
Sleep(100);
It will give CPU time for the OS
domodom

selva
Sorry domdom this is my id selvabarathij@gmail.com.i will check and let u
know....

janelia
DomDOm 

it is also not working with sleep.is there any cure for my problem

janelia
Attachment: last.rar (5.59 MB)
HI domdom  iam selva here iam attaching my file .just only one help.
iam goin to complete my project.i wont disturb u here after

domodom
Sorry, I won't have time to have a look in your source code before next
week.
domodom