In the Release version of MFC, ASSERT does not evaluate the expression and thus will not interrupt the program. If the expression must be evaluated regardless of environment, use the VERIFY macro in place of ASSERT.Note This function is available only in the Debug version of MFC.ntddk.h
用ASSERT就可以了