Click here to Skip to main content
15,796,299 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: VS2008 entropy - cannot open project resource views RC1015 error Pin
mo149224-Aug-19 2:52
mo149224-Aug-19 2:52 
GeneralRe: VS2008 entropy - cannot open project resource views RC1015 error Pin
charlieg25-Aug-19 3:16
charlieg25-Aug-19 3:16 
AnswerRe: VS2008 entropy - cannot open project resource views RC1015 error Pin
Gerry Schmitz25-Aug-19 4:44
mveGerry Schmitz25-Aug-19 4:44 
GeneralRe: VS2008 entropy - cannot open project resource views RC1015 error Pin
charlieg25-Aug-19 15:57
charlieg25-Aug-19 15:57 
AnswerRe: VS2008 entropy - cannot open project resource views RC1015 error Pin
mo149225-Aug-19 12:34
mo149225-Aug-19 12:34 
GeneralRe: VS2008 entropy - cannot open project resource views RC1015 error Pin
charlieg25-Aug-19 16:03
charlieg25-Aug-19 16:03 
GeneralRe: VS2008 entropy - cannot open project resource views RC1015 error Pin
mo149225-Aug-19 21:11
mo149225-Aug-19 21:11 
Questionerror C2059 Pin
_Flaviu20-Aug-19 3:05
_Flaviu20-Aug-19 3:05 
I am struggling from some time to an error:
C++
error C2059: syntax error : ')'

I have somewhere in the old code:
C++
#define list_entry(ptr, type, member) \
	((type *)((char *)(ptr)-(size_t)(&((type *)0)->member)))  // <-- here is the error ...

I have tried this solution, without success: c - list_entry in Linux - Stack Overflow[^]
How can I get rid of this error ?

I am trying to integrate this code in an MFC project, and the code from above is from C code (for linux I guess)
AnswerRe: error C2059 Pin
CPallini20-Aug-19 4:08
mveCPallini20-Aug-19 4:08 
GeneralRe: error C2059 Pin
_Flaviu20-Aug-19 4:27
_Flaviu20-Aug-19 4:27 
GeneralRe: error C2059 Pin
Richard MacCutchan20-Aug-19 5:11
mveRichard MacCutchan20-Aug-19 5:11 
GeneralRe: error C2059 Pin
_Flaviu20-Aug-19 22:30
_Flaviu20-Aug-19 22:30 
GeneralRe: error C2059 Pin
Richard MacCutchan20-Aug-19 22:56
mveRichard MacCutchan20-Aug-19 22:56 
GeneralRe: error C2059 Pin
CPallini20-Aug-19 7:46
mveCPallini20-Aug-19 7:46 
GeneralRe: error C2059 Pin
_Flaviu20-Aug-19 22:42
_Flaviu20-Aug-19 22:42 
GeneralRe: error C2059 Pin
CPallini20-Aug-19 22:59
mveCPallini20-Aug-19 22:59 
QuestionRe: error C2059 Pin
David Crow20-Aug-19 4:09
David Crow20-Aug-19 4:09 
AnswerRe: error C2059 Pin
_Flaviu20-Aug-19 4:32
_Flaviu20-Aug-19 4:32 
QuestionRe: error C2059 Pin
David Crow20-Aug-19 4:35
David Crow20-Aug-19 4:35 
AnswerRe: error C2059 Pin
mo149220-Aug-19 10:01
mo149220-Aug-19 10:01 
GeneralRe: error C2059 Pin
_Flaviu20-Aug-19 23:04
_Flaviu20-Aug-19 23:04 
GeneralRe: error C2059 Pin
_Flaviu20-Aug-19 23:14
_Flaviu20-Aug-19 23:14 
GeneralRe: error C2059 Pin
Stefan_Lang20-Aug-19 23:31
Stefan_Lang20-Aug-19 23:31 
GeneralRe: error C2059 Pin
_Flaviu21-Aug-19 0:22
_Flaviu21-Aug-19 0:22 
GeneralRe: error C2059 Pin
_Flaviu21-Aug-19 0:28
_Flaviu21-Aug-19 0:28 

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.