Click here to Skip to main content
14,367,789 members

C / C++ / MFC

 
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 
In the following macro Name refers to something outside of the definition:
#define TestAndClearDirty(ni)	\
    test_and_clear(ni, Name)

But if Name does not exist in that source module, or is not externalised in a linked module it will never work. My suspicion is that this macro is wrong and Name should be one of the formal parameters, and refer to one of the flags in the ni struct. Something like:
#define TestAndClearDirty(ni, Name)	\
    test_and_clear(ni, Name)

And it would be called by
TestAndClearDirty(ni, some_falg_name);




But I am working completely in the dark and making (probably wild) guesses.

I can only suggest that you go back to the place or person that this code comes from for assistance.
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 
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 
QuestionHow can I have several hundred of #if defined(XXX) ... #endif in an easy-to-read table format? Pin
arnold_w9-Oct-19 12:55
memberarnold_w9-Oct-19 12:55 
QuestionRe: How can I have several hundred of #if defined(XXX) ... #endif in an easy-to-read table format? Pin
Richard MacCutchan9-Oct-19 22:41
protectorRichard MacCutchan9-Oct-19 22:41 
AnswerRe: How can I have several hundred of #if defined(XXX) ... #endif in an easy-to-read table format? Pin
arnold_w9-Oct-19 22:54
memberarnold_w9-Oct-19 22:54 
GeneralRe: How can I have several hundred of #if defined(XXX) ... #endif in an easy-to-read table format? Pin
Richard MacCutchan9-Oct-19 23:10
protectorRichard MacCutchan9-Oct-19 23:10 
GeneralRe: How can I have several hundred of #if defined(XXX) ... #endif in an easy-to-read table format? Pin
arnold_w9-Oct-19 23:20
memberarnold_w9-Oct-19 23:20 
GeneralRe: How can I have several hundred of #if defined(XXX) ... #endif in an easy-to-read table format? Pin
Richard MacCutchan9-Oct-19 23:36
protectorRichard MacCutchan9-Oct-19 23:36 
GeneralRe: How can I have several hundred of #if defined(XXX) ... #endif in an easy-to-read table format? Pin
arnold_w10-Oct-19 0:00
memberarnold_w10-Oct-19 0:00 
AnswerRe: How can I have several hundred of #if defined(XXX) ... #endif in an easy-to-read table format? Pin
CPallini10-Oct-19 4:03
mveCPallini10-Oct-19 4:03 
GeneralRe: How can I have several hundred of #if defined(XXX) ... #endif in an easy-to-read table format? Pin
arnold_w10-Oct-19 5:27
memberarnold_w10-Oct-19 5:27 
GeneralRe: How can I have several hundred of #if defined(XXX) ... #endif in an easy-to-read table format? Pin
CPallini10-Oct-19 7:12
mveCPallini10-Oct-19 7:12 

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.