Click here to Skip to main content
15,885,767 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: error C2059 Pin
mo149220-Aug-19 9:01
mo149220-Aug-19 9:01 
GeneralRe: error C2059 Pin
_Flaviu20-Aug-19 22:04
_Flaviu20-Aug-19 22:04 
GeneralRe: error C2059 Pin
_Flaviu20-Aug-19 22:14
_Flaviu20-Aug-19 22:14 
GeneralRe: error C2059 Pin
Stefan_Lang20-Aug-19 22:31
Stefan_Lang20-Aug-19 22:31 
GeneralRe: error C2059 Pin
_Flaviu20-Aug-19 23:22
_Flaviu20-Aug-19 23:22 
GeneralRe: error C2059 Pin
_Flaviu20-Aug-19 23:28
_Flaviu20-Aug-19 23:28 
GeneralRe: error C2059 Pin
_Flaviu20-Aug-19 23:39
_Flaviu20-Aug-19 23:39 
GeneralRe: error C2059 Pin
Richard MacCutchan21-Aug-19 0:03
mveRichard MacCutchan21-Aug-19 0:03 
_Flaviu wrote:
I cannot get rid of these errors
And you will not get rid of them as long as you keep using 0 as the parameters to the list_next_entry call. The define uses specific C/C++ types that are not valid if replaced by 0. In the above case this code translates as follows:
C++
// your statement
const int nTest = list_next_entry(0, 0);

// converts to:
list_entry((0)->0.next, typeof(*(0)), 0)

which makes no sense at all.
GeneralRe: error C2059 Pin
_Flaviu21-Aug-19 0:52
_Flaviu21-Aug-19 0:52 
GeneralRe: error C2059 Pin
Victor Nijegorodov21-Aug-19 2:08
Victor Nijegorodov21-Aug-19 2:08 
GeneralRe: error C2059 Pin
Victor Nijegorodov21-Aug-19 2:17
Victor Nijegorodov21-Aug-19 2:17 
GeneralRe: error C2059 Pin
_Flaviu21-Aug-19 2:38
_Flaviu21-Aug-19 2:38 
GeneralRe: error C2059 Pin
Richard MacCutchan21-Aug-19 3:59
mveRichard MacCutchan21-Aug-19 3:59 
GeneralRe: error C2059 Pin
_Flaviu21-Aug-19 20:50
_Flaviu21-Aug-19 20:50 
GeneralRe: error C2059 Pin
Stefan_Lang21-Aug-19 5:24
Stefan_Lang21-Aug-19 5:24 
GeneralRe: error C2059 Pin
_Flaviu21-Aug-19 21:45
_Flaviu21-Aug-19 21:45 
GeneralRe: error C2059 Pin
Stefan_Lang21-Aug-19 21:51
Stefan_Lang21-Aug-19 21:51 
GeneralRe: error C2059 Pin
_Flaviu21-Aug-19 23:53
_Flaviu21-Aug-19 23:53 
AnswerRe: error C2059 Pin
Stefan_Lang21-Aug-19 3:08
Stefan_Lang21-Aug-19 3:08 
QuestionC++ Program to decompress a compressed string Pin
antoniu20016-Aug-19 6:19
antoniu20016-Aug-19 6:19 
AnswerRe: C++ Program to decompress a compressed string Pin
Richard MacCutchan17-Aug-19 1:19
mveRichard MacCutchan17-Aug-19 1:19 
GeneralRe: C++ Program to decompress a compressed string Pin
antoniu20017-Aug-19 1:39
antoniu20017-Aug-19 1:39 
GeneralRe: C++ Program to decompress a compressed string Pin
Richard MacCutchan17-Aug-19 3:02
mveRichard MacCutchan17-Aug-19 3:02 
GeneralRe: C++ Program to decompress a compressed string Pin
antoniu20017-Aug-19 3:12
antoniu20017-Aug-19 3:12 
GeneralRe: C++ Program to decompress a compressed string Pin
Richard MacCutchan17-Aug-19 3:22
mveRichard MacCutchan17-Aug-19 3:22 

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.