Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » Question about StateInFile example Collapse All
Subject Author Date
Jonas Gauffin Nov 25, 2005 - 9:03 AM

You are using VERIFY in statements like this:
        VERIFY(
            CExtControlBar::ProfileBarStateSerialize(
            ar,
            this
            )
            );

Doesnt VERIFY, like ASSERT, only exist in DEBUG mode? If so, you code doesnt work in release mode..

Technical Support Nov 26, 2005 - 11:22 AM

The ASSERT macro catches program errors only when you are using the debug version of the MFC. It is turned off (and produce no code) when you build your program with the release version of the library. So, the expression argument to ASSERT will not be evaluated in the release version of your program.

As for the VERIFY macro, it is evaluated in both debug and release versions. In debug versions, VERIFY is the same as ASSERT. In release versions, VERIFY evaluates the expression argument but does not check the result.