Click here to Skip to main content
14,360,959 members

C / C++ / MFC

 
GeneralRe: error C2678 Pin
Victor Nijegorodov7-Oct-19 21:39
memberVictor Nijegorodov7-Oct-19 21:39 
GeneralRe: error C2678 Pin
Richard MacCutchan7-Oct-19 22:55
protectorRichard MacCutchan7-Oct-19 22:55 
GeneralRe: error C2678 Pin
_Flaviu8-Oct-19 0:24
member_Flaviu8-Oct-19 0:24 
GeneralRe: error C2678 Pin
Richard MacCutchan8-Oct-19 0:33
protectorRichard MacCutchan8-Oct-19 0:33 
GeneralRe: error C2678 Pin
Richard MacCutchan8-Oct-19 2:11
protectorRichard MacCutchan8-Oct-19 2:11 
GeneralRe: error C2678 Pin
_Flaviu8-Oct-19 2:41
member_Flaviu8-Oct-19 2:41 
GeneralRe: error C2678 Pin
_Flaviu8-Oct-19 5:12
member_Flaviu8-Oct-19 5:12 
GeneralRe: error C2678 Pin
Richard MacCutchan8-Oct-19 6:12
protectorRichard MacCutchan8-Oct-19 6:12 
Not sure why you posted all that back to front ...

However there are a couple of simple mistakes:

#define statements do not require an = sign. They should be
#define ATTR_IS_COMPRESSED 0x0001
#define ATTR_COMPRESSION_MASK 0x00ff

The name data refers to a struct definition, not a variable. You need something like:
typedef struct
{
.....
	int		 com;
...
} DATA;

DATA* data;

I am assuming that you actually assign the memory required for both structures at some point further on.
GeneralRe: error C2678 Pin
_Flaviu8-Oct-19 6:25
member_Flaviu8-Oct-19 6:25 
Questionunary minus operator applied to unsigned type, result still unsigned Pin
_Flaviu4-Oct-19 0:07
member_Flaviu4-Oct-19 0:07 
AnswerRe: unary minus operator applied to unsigned type, result still unsigned Pin
phil.o4-Oct-19 0:50
mvephil.o4-Oct-19 0:50 
PraiseRe: unary minus operator applied to unsigned type, result still unsigned Pin
_Flaviu4-Oct-19 1:57
member_Flaviu4-Oct-19 1:57 
QuestionOnInitDialog() MFC vc++ Pin
Member 145755563-Oct-19 20:32
memberMember 145755563-Oct-19 20:32 
AnswerRe: OnInitDialog() MFC vc++ Pin
Richard MacCutchan3-Oct-19 21:58
protectorRichard MacCutchan3-Oct-19 21:58 
QuestionHow should I manage my register addresses and expose some of them properly and ensure consistency? Pin
arnold_w3-Oct-19 9:00
memberarnold_w3-Oct-19 9:00 
AnswerRe: How should I manage my register addresses and expose some of them properly and ensure consistency? Pin
Daniel Pfeffer3-Oct-19 21:27
professionalDaniel Pfeffer3-Oct-19 21:27 
GeneralRe: How should I manage my register addresses and expose some of them properly and ensure consistency? Pin
arnold_w3-Oct-19 21:58
memberarnold_w3-Oct-19 21:58 
GeneralRe: How should I manage my register addresses and expose some of them properly and ensure consistency? Pin
leon de boer4-Oct-19 5:23
memberleon de boer4-Oct-19 5:23 
GeneralRe: How should I manage my register addresses and expose some of them properly and ensure consistency? Pin
arnold_w9-Oct-19 23:46
memberarnold_w9-Oct-19 23:46 
QuestionS_IRUSR S_IWUSR Pin
_Flaviu3-Oct-19 8:12
member_Flaviu3-Oct-19 8:12 
AnswerRe: S_IRUSR S_IWUSR Pin
Richard MacCutchan3-Oct-19 8:32
protectorRichard MacCutchan3-Oct-19 8:32 
AnswerRe: S_IRUSR S_IWUSR Pin
David Crow3-Oct-19 8:33
memberDavid Crow3-Oct-19 8:33 
AnswerRe: S_IRUSR S_IWUSR Pin
CPallini3-Oct-19 8:46
mveCPallini3-Oct-19 8:46 
QuestionTool to replace tabs with VARIABLE NUMBER OF SPACES and preserve column alignment? Pin
arnold_w3-Oct-19 2:27
memberarnold_w3-Oct-19 2:27 
AnswerRe: Tool to replace tabs with --- variable number of spaces --- and preserving width? Pin
_Flaviu3-Oct-19 2:32
member_Flaviu3-Oct-19 2:32 

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.