jonhsv
June 13th, 2000, 08:38 AM
Hi everyone
What is the meaning of this ASSERT_VALID
Regards
Jon Sveinsson
What is the meaning of this ASSERT_VALID
Regards
Jon Sveinsson
|
Click to See Complete Forum and Search --> : ASSERT_VALID jonhsv June 13th, 2000, 08:38 AM Hi everyone What is the meaning of this ASSERT_VALID Regards Jon Sveinsson Bill Heffner June 13th, 2000, 08:45 AM from the MSDN Library. You really ought to become familiar with it. ASSERT_VALID ASSERT_VALID( pObject ) Parameters pObject Specifies an object of a class derived from CObject that has an overriding version of the AssertValid member function. Remarks Use to test your assumptions about the validity of an object’s internal state. ASSERT_VALID calls the AssertValid member function of the object passed as its argument. In the Release version of MFC, ASSERT_VALID does nothing. In the Debug version, it validates the pointer, checks against NULL, and calls the object’s own AssertValid member functions. If any of these tests fails, this displays an alert message in the same manner as ASSERT. Note This function is available only in the Debug version of MFC. For more information and examples, seeMFC Debugging Support in Visual C++ Programmer’s Guide. codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |