Click here to Skip to main content
14,664,655 members
Home » Discussions » C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Project Pin
Richard MacCutchan15-May-20 0:51
mveRichard MacCutchan15-May-20 0:51 
GeneralRe: Project Pin
CPallini15-May-20 1:44
mveCPallini15-May-20 1:44 
GeneralRe: Project Pin
charlieg18-May-20 12:59
Membercharlieg18-May-20 12:59 
QuestionCaret not displayed in CEdit control with focus when dialog initially displayed Pin
Member 1106593314-May-20 23:35
MemberMember 1106593314-May-20 23:35 
AnswerRe: Caret not displayed in CEdit control with focus when dialog initially displayed Pin
Richard MacCutchan14-May-20 23:53
mveRichard MacCutchan14-May-20 23:53 
GeneralRe: Caret not displayed in CEdit control with focus when dialog initially displayed Pin
Member 1106593315-May-20 0:36
MemberMember 1106593315-May-20 0:36 
GeneralRe: Caret not displayed in CEdit control with focus when dialog initially displayed Pin
Richard MacCutchan15-May-20 0:48
mveRichard MacCutchan15-May-20 0:48 
QuestionPossible to #if in case an enum exists? Pin
arnold_w11-May-20 22:21
Memberarnold_w11-May-20 22:21 
Is it possible to somehow check during compile time if an enum exists, i.e. something like this:
typedef enum {
    MY_ENUM_VALUE = 0
} myEnum_e;

#define DOES_ENUM_EXIT(__ARG__)       ??? What goes here???

if (DOES_ENUM_EXIT(myEnum)) {     // Will evaluate to TRUE during compile time since myEnum_e exists
}
I know that I could achieve something similar easily be using
#define MY_ENUM_VALUE    (0)
instead, but then my code wouldn't be type safe.
AnswerRe: Possible to #if in case an enum exists? Pin
CPallini11-May-20 22:48
mveCPallini11-May-20 22:48 
AnswerRe: Possible to #if in case an enum exists? Pin
Richard MacCutchan11-May-20 23:29
mveRichard MacCutchan11-May-20 23:29 
GeneralRe: Possible to #if in case an enum exists? Pin
Greg Utas15-May-20 0:22
professionalGreg Utas15-May-20 0:22 
GeneralRe: Possible to #if in case an enum exists? Pin
Richard MacCutchan15-May-20 0:29
mveRichard MacCutchan15-May-20 0:29 
QuestionReading sectors Pin
_Flaviu8-May-20 5:46
Member_Flaviu8-May-20 5:46 
AnswerRe: Reading sectors Pin
Victor Nijegorodov8-May-20 6:15
MemberVictor Nijegorodov8-May-20 6:15 
GeneralRe: Reading sectors Pin
_Flaviu9-May-20 19:55
Member_Flaviu9-May-20 19:55 
GeneralRe: Reading sectors Pin
Victor Nijegorodov9-May-20 20:49
MemberVictor Nijegorodov9-May-20 20:49 
GeneralRe: Reading sectors Pin
_Flaviu9-May-20 21:21
Member_Flaviu9-May-20 21:21 
AnswerRe: Reading sectors Pin
Graham Breach8-May-20 6:22
MemberGraham Breach8-May-20 6:22 
AnswerRe: Reading sectors Pin
Richard MacCutchan8-May-20 6:46
mveRichard MacCutchan8-May-20 6:46 
GeneralRe: Reading sectors Pin
_Flaviu9-May-20 20:31
Member_Flaviu9-May-20 20:31 
GeneralRe: Reading sectors Pin
Richard MacCutchan9-May-20 21:32
mveRichard MacCutchan9-May-20 21:32 
GeneralRe: Reading sectors Pin
_Flaviu9-May-20 21:34
Member_Flaviu9-May-20 21:34 
GeneralRe: Reading sectors Pin
Richard MacCutchan9-May-20 22:13
mveRichard MacCutchan9-May-20 22:13 
GeneralRe: Reading sectors Pin
_Flaviu9-May-20 22:24
Member_Flaviu9-May-20 22:24 
GeneralRe: Reading sectors Pin
Victor Nijegorodov9-May-20 22:57
MemberVictor Nijegorodov9-May-20 22:57 

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.