Click here to Skip to main content
14,384,553 members

C / C++ / MFC

 
GeneralRe: CCombobox MFC vc++ Pin
Member 1457555611-Oct-19 4:39
memberMember 1457555611-Oct-19 4:39 
QuestionRe: CCombobox MFC vc++ Pin
David Crow11-Oct-19 4:51
memberDavid Crow11-Oct-19 4:51 
GeneralRe: CCombobox MFC vc++ Pin
Victor Nijegorodov11-Oct-19 5:43
memberVictor Nijegorodov11-Oct-19 5:43 
QuestionRe: CCombobox MFC vc++ Pin
David Crow11-Oct-19 7:47
memberDavid Crow11-Oct-19 7:47 
AnswerRe: CCombobox MFC vc++ Pin
Victor Nijegorodov11-Oct-19 8:27
memberVictor Nijegorodov11-Oct-19 8:27 
GeneralRe: CCombobox MFC vc++ Pin
Member 1457555612-Oct-19 17:59
memberMember 1457555612-Oct-19 17:59 
GeneralRe: CCombobox MFC vc++ Pin
Victor Nijegorodov13-Oct-19 21:27
memberVictor Nijegorodov13-Oct-19 21:27 
AnswerRe: CCombobox MFC vc++ Pin
Richard MacCutchan11-Oct-19 4:17
protectorRichard MacCutchan11-Oct-19 4:17 
GeneralRe: CCombobox MFC vc++ Pin
Member 1457555612-Oct-19 19:26
memberMember 1457555612-Oct-19 19:26 
GeneralRe: CCombobox MFC vc++ Pin
Richard MacCutchan12-Oct-19 21:54
protectorRichard MacCutchan12-Oct-19 21:54 
Questionerror C2143 Pin
_Flaviu10-Oct-19 4:41
member_Flaviu10-Oct-19 4:41 
AnswerRe: error C2143 Pin
Richard MacCutchan10-Oct-19 5:21
protectorRichard MacCutchan10-Oct-19 5:21 
AnswerRe: error C2143 Pin
CPallini10-Oct-19 7:14
mveCPallini10-Oct-19 7:14 
GeneralRe: error C2143 Pin
_Flaviu10-Oct-19 20:47
member_Flaviu10-Oct-19 20:47 
GeneralRe: error C2143 Pin
_Flaviu11-Oct-19 1:29
member_Flaviu11-Oct-19 1:29 
GeneralRe: error C2143 Pin
Richard MacCutchan11-Oct-19 1:55
protectorRichard MacCutchan11-Oct-19 1:55 
GeneralRe: error C2143 Pin
_Flaviu11-Oct-19 2:08
member_Flaviu11-Oct-19 2:08 
GeneralRe: error C2143 Pin
Richard MacCutchan11-Oct-19 2:24
protectorRichard MacCutchan11-Oct-19 2:24 
GeneralRe: error C2143 Pin
_Flaviu11-Oct-19 5:28
member_Flaviu11-Oct-19 5:28 
GeneralRe: error C2143 Pin
Richard MacCutchan11-Oct-19 6:04
protectorRichard MacCutchan11-Oct-19 6:04 
GeneralRe: error C2143 Pin
leon de boer15-Oct-19 3:58
memberleon de boer15-Oct-19 3:58 
test_and_clear is a macro you can't use it as a function, macros don't return things without hijinx Smile | :)

GCC has a thing called a statement expression
Using the GNU Compiler Collection (GCC): Statement Exprs[^]

However I strong suggestly you don't do it just create a proper function (that is after all what you are trying to write) and inline it if speed is an issue.
In vino veritas

AnswerRe: error C2143 Pin
David Crow10-Oct-19 11:44
memberDavid Crow10-Oct-19 11:44 
AnswerRe: error C2143 Pin
Daniel Pfeffer11-Oct-19 5:47
professionalDaniel Pfeffer11-Oct-19 5:47 
GeneralRe: error C2143 Pin
_Flaviu13-Oct-19 0:44
member_Flaviu13-Oct-19 0:44 
GeneralRe: error C2143 Pin
_Flaviu13-Oct-19 0:46
member_Flaviu13-Oct-19 0:46 

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.