这是MFC中的一个宏,用来诊断所给值是否有效,返回类型为一个Boolean值,一般用于Debug中

解决方案 »

  1.   

    ASSERT(booleanExpress)
    这个宏计算其参数值,为0则输出一个调试信息并退出程序,非0则什么也不做
      

  2.   

    Evaluates the given condition in a debug build. If the resulting evaluation is false, then ASSERT calls DbgAssert to handle the assertion failure. DbgAssert can return to its caller later, if the user so desires.  
    只有在调试时才用到!
      

  3.   

    release编译时被忽略
    debug编译时有效
    MFC的一个宏,判断值是否有效,返回一个Bool值