-
May 24th, 2013, 12:36 PM
#1
Debug-only AfxMessageBox
Hi, I am looking for a function like AfxMessageBox, but will only available in Debug Version, to display some error messages. I have thought of TRACE, but it will only dump the error message in the output box, not pop up a messagebox to pause the execution of the program. Does Visual C++ provide such a function?
-
May 24th, 2013, 12:39 PM
#2
Re: Debug-only AfxMessageBox
You could wrap your call to AfxMessageBox() #ifdef _DEBUG, but that's an unusual way to debug. What's that doing that the debugger can't accomplish?
-
May 29th, 2013, 03:29 AM
#3
Re: Debug-only AfxMessageBox
Use ASSERT macro, followed by a comment describing the error.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|