Click here to Skip to main content
15,915,702 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ATL 7.0 & NT Service. Pin
Carl19-Mar-02 2:10
Carl19-Mar-02 2:10 
GeneralAntialiased XP icons Pin
18-Mar-02 9:17
suss18-Mar-02 9:17 
GeneralRe: Antialiased XP icons Pin
Jon Sagara18-Mar-02 9:31
Jon Sagara18-Mar-02 9:31 
GeneralRe: Antialiased XP icons Pin
Derek Lakin18-Mar-02 11:02
Derek Lakin18-Mar-02 11:02 
GeneralRe: Antialiased XP icons Pin
Shog918-Mar-02 10:58
sitebuilderShog918-Mar-02 10:58 
GeneralPopup menus don't disappear Pin
18-Mar-02 9:05
suss18-Mar-02 9:05 
GeneralRe: Popup menus don't disappear Pin
Michael Dunn18-Mar-02 10:27
sitebuilderMichael Dunn18-Mar-02 10:27 
GeneralAssert madness Pin
Todd Smith18-Mar-02 8:34
Todd Smith18-Mar-02 8:34 
I'm trying to make my own assert and add some file logging. Looking at assert.h I see the following #define

#define assert(exp) (void)( (exp) || (_assert(#exp, __FILE__, __LINE__), 0) )


I'm a little confused with that ,0 in there. What does that expression evaluate to?

The problem I'm having is, when I call _assert myself I get an abnormal program termination when I click on Ignore in the assert dialog.

Here's the ohter part of the header

#ifdef  __cplusplus
extern "C" {
#endif

_CRTIMP void __cdecl _assert(void *, void *, unsigned);

#ifdef  __cplusplus
}
#endif

#define assert(exp) (void)( (exp) || (_assert(#exp, __FILE__, __LINE__), 0) )


Todd Smith
CPUA 0x007 ... shaken not stirred

GeneralRe: Assert madness Pin
Tomasz Sowinski18-Mar-02 8:53
Tomasz Sowinski18-Mar-02 8:53 
GeneralRe: Assert madness Pin
Todd Smith18-Mar-02 9:30
Todd Smith18-Mar-02 9:30 
GeneralRe: Assert madness Pin
Tomasz Sowinski18-Mar-02 9:55
Tomasz Sowinski18-Mar-02 9:55 
Generaltemplate class on CWinThread Pin
18-Mar-02 8:30
suss18-Mar-02 8:30 
GeneralRe: template class on CWinThread Pin
Tomasz Sowinski18-Mar-02 8:49
Tomasz Sowinski18-Mar-02 8:49 
QuestionHow to use WM_WTSSESSION_CHANGE? Pin
WookMaster18-Mar-02 7:11
WookMaster18-Mar-02 7:11 
AnswerRe: How to use WM_WTSSESSION_CHANGE? Pin
Tomasz Sowinski18-Mar-02 7:18
Tomasz Sowinski18-Mar-02 7:18 
GeneralRe: How to use WM_WTSSESSION_CHANGE? Pin
WookMaster18-Mar-02 7:27
WookMaster18-Mar-02 7:27 
GeneralRe: How to use WM_WTSSESSION_CHANGE? Pin
Tomasz Sowinski18-Mar-02 7:29
Tomasz Sowinski18-Mar-02 7:29 
GeneralRe: How to use WM_WTSSESSION_CHANGE? Pin
WookMaster18-Mar-02 7:40
WookMaster18-Mar-02 7:40 
GeneralRe: How to use WM_WTSSESSION_CHANGE? Pin
Tomasz Sowinski18-Mar-02 7:38
Tomasz Sowinski18-Mar-02 7:38 
GeneralRe: How to use WM_WTSSESSION_CHANGE? Pin
WookMaster18-Mar-02 7:48
WookMaster18-Mar-02 7:48 
GeneralRe: How to use WM_WTSSESSION_CHANGE? Pin
Tomasz Sowinski18-Mar-02 7:47
Tomasz Sowinski18-Mar-02 7:47 
GeneralRe: How to use WM_WTSSESSION_CHANGE? Pin
Blake Miller15-Apr-04 9:36
Blake Miller15-Apr-04 9:36 
GeneralDUN Pin
AusBloke18-Mar-02 6:28
AusBloke18-Mar-02 6:28 
GeneralRe: DUN Pin
Vladimir Georgiev18-Mar-02 7:58
Vladimir Georgiev18-Mar-02 7:58 
GeneralRe: DUN Pin
AusBloke18-Mar-02 9:25
AusBloke18-Mar-02 9:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.