我是VC菜鸟,问如此低级的问题,还望前辈赐教,谢谢!!

解决方案 »

  1.   

    MSDN说的很清楚:
    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.
      

  2.   

    都是调试宏,用来检查一个条件是否成立,如果不成立,则弹出消息框提示出错。区别是Debug版本中用ASSERT,Release版本中用VERIFY,功能都是一样的。记住这一点就OK了。       
      

  3.   

    Release下不检测ASSERT宏,但检测VERIFY宏,Debug下没有区别