Click here to Skip to main content
15,891,529 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: error C2678 Pin
_Flaviu7-Oct-19 20:21
_Flaviu7-Oct-19 20:21 
GeneralRe: error C2678 Pin
Victor Nijegorodov7-Oct-19 20:39
Victor Nijegorodov7-Oct-19 20:39 
GeneralRe: error C2678 Pin
Richard MacCutchan7-Oct-19 21:55
mveRichard MacCutchan7-Oct-19 21:55 
GeneralRe: error C2678 Pin
_Flaviu7-Oct-19 23:24
_Flaviu7-Oct-19 23:24 
GeneralRe: error C2678 Pin
Richard MacCutchan7-Oct-19 23:33
mveRichard MacCutchan7-Oct-19 23:33 
GeneralRe: error C2678 Pin
Richard MacCutchan8-Oct-19 1:11
mveRichard MacCutchan8-Oct-19 1:11 
GeneralRe: error C2678 Pin
_Flaviu8-Oct-19 1:41
_Flaviu8-Oct-19 1:41 
GeneralRe: error C2678 Pin
_Flaviu8-Oct-19 4:12
_Flaviu8-Oct-19 4:12 
The fact is like that: I have an error:
C++
error C2059: syntax error : '='

the error is reported here:
C++
data->com = na->flags & ATTR_IS_COMPRESSED;

where:
data is a struct:
C++
struct data
{
.....
	int		 com;
...
};

and na is
C++
RECORD* na;

and RECORD is:
C++
typedef struct {
....
....
		int flags;
.....		
}RECORD;

and
ATTR_IS_COMPRESSED
is from here (from my modifications):
C++
typedef int ATTR_FLAGS;

//typedef enum {
//	ATTR_IS_COMPRESSED = 0x0001,
//	ATTR_COMPRESSION_MASK = 0x00ff,
//}ATTR_FLAGS;

#define ATTR_IS_COMPRESSED = 0x0001
#define ATTR_COMPRESSION_MASK = 0x00ff

GeneralRe: error C2678 Pin
Richard MacCutchan8-Oct-19 5:12
mveRichard MacCutchan8-Oct-19 5:12 
GeneralRe: error C2678 Pin
_Flaviu8-Oct-19 5:25
_Flaviu8-Oct-19 5:25 
Questionunary minus operator applied to unsigned type, result still unsigned Pin
_Flaviu3-Oct-19 23:07
_Flaviu3-Oct-19 23:07 
AnswerRe: unary minus operator applied to unsigned type, result still unsigned Pin
phil.o3-Oct-19 23:50
professionalphil.o3-Oct-19 23:50 
PraiseRe: unary minus operator applied to unsigned type, result still unsigned Pin
_Flaviu4-Oct-19 0:57
_Flaviu4-Oct-19 0:57 
QuestionOnInitDialog() MFC vc++ Pin
Member 145755563-Oct-19 19:32
Member 145755563-Oct-19 19:32 
AnswerRe: OnInitDialog() MFC vc++ Pin
Richard MacCutchan3-Oct-19 20:58
mveRichard MacCutchan3-Oct-19 20:58 
QuestionHow should I manage my register addresses and expose some of them properly and ensure consistency? Pin
arnold_w3-Oct-19 8:00
arnold_w3-Oct-19 8:00 
AnswerRe: How should I manage my register addresses and expose some of them properly and ensure consistency? Pin
Daniel Pfeffer3-Oct-19 20:27
professionalDaniel Pfeffer3-Oct-19 20:27 
GeneralRe: How should I manage my register addresses and expose some of them properly and ensure consistency? Pin
arnold_w3-Oct-19 20:58
arnold_w3-Oct-19 20:58 
GeneralRe: How should I manage my register addresses and expose some of them properly and ensure consistency? Pin
leon de boer4-Oct-19 4:23
leon de boer4-Oct-19 4:23 
GeneralRe: How should I manage my register addresses and expose some of them properly and ensure consistency? Pin
arnold_w9-Oct-19 22:46
arnold_w9-Oct-19 22:46 
QuestionS_IRUSR S_IWUSR Pin
_Flaviu3-Oct-19 7:12
_Flaviu3-Oct-19 7:12 
AnswerRe: S_IRUSR S_IWUSR Pin
Richard MacCutchan3-Oct-19 7:32
mveRichard MacCutchan3-Oct-19 7:32 
AnswerRe: S_IRUSR S_IWUSR Pin
David Crow3-Oct-19 7:33
David Crow3-Oct-19 7:33 
AnswerRe: S_IRUSR S_IWUSR Pin
CPallini3-Oct-19 7:46
mveCPallini3-Oct-19 7:46 
QuestionTool to replace tabs with VARIABLE NUMBER OF SPACES and preserve column alignment? Pin
arnold_w3-Oct-19 1:27
arnold_w3-Oct-19 1:27 

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.