Since AfxMessageBox() returns an int you could change your function from void to int return type. Then get a single line exit by
Code:if(! result) return AfxMessageBox(ErrorMsg)![]()
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 15 of 16
Threaded View
|
Click Here to Expand Forum to Full Width |