VC++ QQ can automatically stop function