What is the difference between ASSERT and VERIFY?

Answers were Sorted based on User's Feedback



What is the difference between ASSERT and VERIFY?..

Answer / hari krishna

Hi,

ASSERT evaluates the expression only in the debug version
and will throw an exception if the result is 0 and the
program termintes.

VERIFY evalutes the expression in Debug and Release version
also and if the result is 0, will throw an exception only
in Debug mode.

Is This Answer Correct ?    18 Yes 0 No

What is the difference between ASSERT and VERIFY?..

Answer / srinivas endra

The main difference between ASSERT and VERIFY is when you
compile the release build of the program.

ASSERT will not be present in the release build version of
the executables/dlls, and its expression that would have
been evaluated will be deleted.

VERIFY will be present in the release build version of the
executables/dlls but its expression that would have been
evaluated will be left intact.

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More MFC Interview Questions

List out the basic features of MFC.

4 Answers   Mphasis,


How do I create a dialog box in mfc?

0 Answers  


What is the difference between the SDI and MDI

3 Answers   Invensys,


What is Multithreading

1 Answers   Invensys,


How to find the mouse entering an image?..while entering need to display next image...

4 Answers  






How to update all the views whenver document got updated ?

1 Answers  


What function is called by a document class to notify views that the document has been changed?

2 Answers  


Explain Doc/View architecture

6 Answers   Huawei,


How can server communicate with more than one client

2 Answers   Invensys,


What is the command routing in MFC framework?

3 Answers  


What are the advantages of using Doc/View or SDI over DialogBox

2 Answers  


What is the use of CCmdTarget ?

4 Answers  


Categories