Click here to Skip to main content
14,386,783 members

C / C++ / MFC

 
GeneralRe: error C2678 Pin
_Flaviu6-Oct-19 8:26
Member_Flaviu6-Oct-19 8:26 
GeneralRe: error C2678 Pin
_Flaviu6-Oct-19 11:04
Member_Flaviu6-Oct-19 11:04 
GeneralRe: error C2678 Pin
Victor Nijegorodov6-Oct-19 21:34
MemberVictor Nijegorodov6-Oct-19 21:34 
GeneralRe: error C2678 Pin
_Flaviu6-Oct-19 22:30
Member_Flaviu6-Oct-19 22:30 
GeneralRe: error C2678 Pin
Victor Nijegorodov6-Oct-19 22:43
MemberVictor Nijegorodov6-Oct-19 22:43 
GeneralRe: error C2678 Pin
_Flaviu6-Oct-19 22:58
Member_Flaviu6-Oct-19 22:58 
GeneralRe: error C2678 Pin
Richard MacCutchan6-Oct-19 23:22
mveRichard MacCutchan6-Oct-19 23:22 
GeneralRe: error C2678 Pin
_Flaviu7-Oct-19 10:16
Member_Flaviu7-Oct-19 10:16 
I am not get something, so forgive me.

I have moved those enum values as #defines, but of course, now I get error from struct: doesn't know who is FILE_FLAGS flags; from level1 struct.

/*
typedef enum {
	FILE_READONLY = 0x00000001,
	FILE_HIDDEN = 0x00000002,
	FILE_SYSTEM = 0x00000004,

	FILE_DIRECTORY = 0x00000010,
	FILE_ARCHIVE = 0x00000020,
	FILE_DEVICE = 0x00000040,
	FILE_NORMAL = 0x00000080,

	FILE_TEMPORARY = 0x00000100,
....
.....

}FILE_FLAGS;
*/

#define	FILE_READONLY = 0x00000001
#define	FILE_HIDDEN = 0x00000002
#define	FILE_SYSTEM = 0x00000004

of course, FILE_FLAGS enum has disappeared ... obviously, I don't understood something ... but what ?

struct level1
{
FILE_FLAGS flags; // <-- error
....
};

GeneralRe: error C2678 Pin
Victor Nijegorodov7-Oct-19 10:24
MemberVictor Nijegorodov7-Oct-19 10:24 
GeneralRe: error C2678 Pin
_Flaviu7-Oct-19 21:21
Member_Flaviu7-Oct-19 21:21 
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
mveRichard 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
mveRichard MacCutchan8-Oct-19 0:33 
GeneralRe: error C2678 Pin
Richard MacCutchan8-Oct-19 2:11
mveRichard 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
mveRichard MacCutchan8-Oct-19 6:12 
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
mveRichard 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 

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.