Click here to Skip to main content
14,326,246 members

C / C++ / MFC

 
GeneralRe: How can I have several hundred of #if defined(XXX) ... #endif in an easy-to-read table format? Pin
arnold_w10-Oct-19 4:27
memberarnold_w10-Oct-19 4:27 
GeneralRe: How can I have several hundred of #if defined(XXX) ... #endif in an easy-to-read table format? Pin
CPallini10-Oct-19 6:12
mveCPallini10-Oct-19 6:12 
QuestionProblem with AlphaBlend. Pin
Member 126614649-Oct-19 6:57
memberMember 126614649-Oct-19 6:57 
QuestionRe: Problem with AlphaBlend. Pin
Richard MacCutchan9-Oct-19 8:49
protectorRichard MacCutchan9-Oct-19 8:49 
AnswerRe: Problem with AlphaBlend. Pin
Member 126614649-Oct-19 9:09
memberMember 126614649-Oct-19 9:09 
GeneralRe: Problem with AlphaBlend. Pin
Richard MacCutchan9-Oct-19 9:34
protectorRichard MacCutchan9-Oct-19 9:34 
QuestionPassing a "value", that was either #defined or #undef, into a macro and check if it was defined? Pin
arnold_w9-Oct-19 6:07
memberarnold_w9-Oct-19 6:07 
AnswerRe: Passing a "value", that was either #defined or #undef, into a macro and check if it was defined? Pin
k50549-Oct-19 6:48
memberk50549-Oct-19 6:48 
AFAIK, that's not possible, since the # token is reserved for stringifying macro parameters within the macro expansion.

Also, I see that your definition for VALIDATE_ADDR ends in a semicolon. In general, you do not want to end a macro with a semicolon, since this can lead to, in the best case, a compiler error, and in the worst case, a subtle and hard to find bug.
AnswerRe: Passing a "value", that was either #defined or #undef, into a macro and check if it was defined? Pin
Richard MacCutchan9-Oct-19 8:47
protectorRichard MacCutchan9-Oct-19 8:47 
GeneralRe: Passing a "value", that was either #defined or #undef, into a macro and check if it was defined? Pin
arnold_w9-Oct-19 9:14
memberarnold_w9-Oct-19 9:14 
GeneralRe: Passing a "value", that was either #defined or #undef, into a macro and check if it was defined? Pin
Richard MacCutchan9-Oct-19 9:51
protectorRichard MacCutchan9-Oct-19 9:51 
AnswerRe: Passing a "value", that was either #defined or #undef, into a macro and check if it was defined? Pin
arnold_w9-Oct-19 9:18
memberarnold_w9-Oct-19 9:18 
QuestionString Table MFC vc++ Pin
Member 145755569-Oct-19 1:59
memberMember 145755569-Oct-19 1:59 
AnswerRe: String Table MFC vc++ Pin
Member 145755569-Oct-19 2:04
memberMember 145755569-Oct-19 2:04 
GeneralRe: String Table MFC vc++ Pin
Maximilien9-Oct-19 22:00
memberMaximilien9-Oct-19 22:00 
GeneralRe: String Table MFC vc++ Pin
Member 145755569-Oct-19 22:20
memberMember 145755569-Oct-19 22:20 
QuestionSingleton Design Pattern for Database connection in MFC vc++ Pin
Member 145755566-Oct-19 18:24
memberMember 145755566-Oct-19 18:24 
AnswerRe: Singleton Design Pattern for Database connection in MFC vc++ Pin
_Flaviu6-Oct-19 19:38
member_Flaviu6-Oct-19 19:38 
GeneralRe: Singleton Design Pattern for Database connection in MFC vc++ Pin
Member 145755566-Oct-19 21:29
memberMember 145755566-Oct-19 21:29 
GeneralRe: Singleton Design Pattern for Database connection in MFC vc++ Pin
_Flaviu6-Oct-19 21:55
member_Flaviu6-Oct-19 21:55 
GeneralOT Pin
Richard MacCutchan6-Oct-19 23:03
protectorRichard MacCutchan6-Oct-19 23:03 
GeneralRe: OT Pin
_Flaviu6-Oct-19 23:32
member_Flaviu6-Oct-19 23:32 
GeneralRe: OT Pin
Richard MacCutchan7-Oct-19 2:35
protectorRichard MacCutchan7-Oct-19 2:35 
Questionidentifier 'mode_t' Pin
_Flaviu6-Oct-19 8:08
member_Flaviu6-Oct-19 8:08 
AnswerRe: identifier 'mode_t' Pin
Victor Nijegorodov6-Oct-19 9:57
memberVictor Nijegorodov6-Oct-19 9:57 

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.