我试出来了,把这两条语句换一下:
this->SetTimer(1,10000,NULL); //定时器10秒,再次从数据库中检测
m_ADOConn.ExitConnect();