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................ }
gettime function in vc++
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
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