About Cursor Blinking : Plz Help
-
I developed one Schduler application , In which I used OnTimer() function to popup the messages to a particular given time. Cursor is blinking when the application is running. When I move the cursor on to appli it is blinking . Plz Give Solution very Urgently. Praveen Chowdam Kumar
-
I developed one Schduler application , In which I used OnTimer() function to popup the messages to a particular given time. Cursor is blinking when the application is running. When I move the cursor on to appli it is blinking . Plz Give Solution very Urgently. Praveen Chowdam Kumar
-
n CString sql,sDate; /*CString sDriver = "MICROSOFT ACCESS DRIVER (*.mdb)"; CMyTabExampleApp *pApp = (CMyTabExampleApp *)AfxGetApp(); */ CDatabase db; db.OpenEx("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\\mydabase.mdb;DSN=MyDsnName",CDatabase::noOdbcDialog); CRecordset recset( &db); CTime t; CTime s=t.GetCurrentTime(); CString strDate,strTime; strDate.Format("%d-%d-%d",s.GetDay(),s.GetMonth(),s.GetYear()); strTime.Format("%d:%d:%d",s.GetHour(),s.GetMinute(),s.GetSecond()); sql = "select TaskType, TaskDetails, StartDate,SnoozeTime from mytable where StartDate ='"+strDate+"' and SnoozeTime = '"+strTime+"'"; recset.Open(CRecordset::forwardOnly,sql,CRecordset::dynaset); //MessageBox("READING DB"); CString tasktype,taskdetails; while(!recset.IsEOF()) { recset.GetFieldValue("TaskType",tasktype); recset.GetFieldValue("TaskDetails",taskdetails); recset.MoveNext(); MessageBox(tasktype + "\n\n"+ taskdetails); if(tasktype=="APPLICATION") { CSnoozeAppli objappli; objappli.sTaskDetails = taskdetails; objappli.DoModal (); } else { CSnoozeMsg dlg; dlg.sTaskDetails =taskdetails; dlg.DoModal(); } } db.Close(); SetTimer(100,1000,NULL); CDialog::OnTimer(nIDEvent); Praveen