Visual C++ Debugging: How to use 'ASSERT' and deal with
assertions failures? Results 1 to 1 of 1  Thread: Visual C++
Debugging: How to use 'ASSERT' and deal with assertions
failures?  Threaded View    1. #1     Join Date     Oct 2002
Timisoara, Romania       Q: What is an assertion?      A: An
assertion statement specifies a condition that you expect to
hold true at some particular point in your program. If that
condition does not hold true, the assertion fails, execution of
your program is interrupted, and the Assertion Failed dialog box
appears.      Q: What kind of asserts does Visual C++ support?
A: Visual C++ supports assertion statements based on the
following constructs:     • 'MFC assertions' for MFC program
• 'ATLASSERT for programs that use ATL     • 'CRT' assertions
for programs that use the C run-time library     • ANSI
'assert()' function for other C/C++ programs      Q: What good
are assertions for?      A: You can use assertions to:     •
Catch logic errors     • Check results of a