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

C / C++ / MFC

 
GeneralRe: error C3861: 'major': identifier not found Pin
Stefan_Lang8-Jan-20 22:40
Stefan_Lang8-Jan-20 22:40 
Questionsetw irrational behaviour Pin
Vaclav_5-Jan-20 8:25
Vaclav_5-Jan-20 8:25 
AnswerRe: setw irrational behaviour Pin
k50545-Jan-20 10:27
mvek50545-Jan-20 10:27 
GeneralRe: setw irrational behaviour Pin
Vaclav_5-Jan-20 17:37
Vaclav_5-Jan-20 17:37 
GeneralRe: setw irrational behaviour Pin
Richard MacCutchan5-Jan-20 21:53
mveRichard MacCutchan5-Jan-20 21:53 
GeneralRe: setw irrational behaviour Pin
k50546-Jan-20 4:16
mvek50546-Jan-20 4:16 
AnswerRe: setw irrational behaviour Pin
CPallini6-Jan-20 21:30
mveCPallini6-Jan-20 21:30 
Questionerror C2065: '_S_IFDIR' : undeclared identifier Pin
_Flaviu5-Jan-20 7:42
_Flaviu5-Jan-20 7:42 
Trying to convert a linux project to windows, I met an error (from the subject of the post). I have a chance to use something else in windows case ?

C++
if(S_ISDIR(type))
....

where type is defined as mode_t type ... and mode_t is another error:

C++
error C2061: syntax error : identifier 'mode_t'

how can I solve these errors ? I seek on internet and I found something like:
C++
#if defined __WIN32__ || defined _WIN32 || defined _Windows
      #if !defined S_ISDIR
            #define S_ISDIR(m) (((m) & _S_IFDIR) == _S_IFDIR)
      #endif
#endif

taken from here: c - Error: identifier "_S_IFDIR" is undefined - Stack Overflow[^]
AnswerRe: error C2065: '_S_IFDIR' : undeclared identifier Pin
k50545-Jan-20 10:31
mvek50545-Jan-20 10:31 
AnswerRe: error C2065: '_S_IFDIR' : undeclared identifier Pin
Richard MacCutchan5-Jan-20 21:28
mveRichard MacCutchan5-Jan-20 21:28 
QuestionC++ control textBox of Form1 and Form2 Pin
HeeMongKorea29-Dec-19 20:08
professionalHeeMongKorea29-Dec-19 20:08 
AnswerRe: C++ control textBox of Form1 and Form2 Pin
Richard MacCutchan29-Dec-19 22:02
mveRichard MacCutchan29-Dec-19 22:02 
AnswerRe: C++ control textBox of Form1 and Form2 Pin
Victor Nijegorodov30-Dec-19 0:37
Victor Nijegorodov30-Dec-19 0:37 
QuestionAbstract Factory Design/Linked List Problem Pin
EjireK28-Dec-19 4:59
EjireK28-Dec-19 4:59 
AnswerRe: Abstract Factory Design/Linked List Problem Pin
Richard MacCutchan28-Dec-19 5:51
mveRichard MacCutchan28-Dec-19 5:51 
GeneralRe: Abstract Factory Design/Linked List Problem Pin
EjireK28-Dec-19 6:14
EjireK28-Dec-19 6:14 
GeneralRe: Abstract Factory Design/Linked List Problem Pin
Richard MacCutchan28-Dec-19 6:29
mveRichard MacCutchan28-Dec-19 6:29 
GeneralRe: Abstract Factory Design/Linked List Problem Pin
EjireK28-Dec-19 12:18
EjireK28-Dec-19 12:18 
GeneralRe: Abstract Factory Design/Linked List Problem Pin
leon de boer28-Dec-19 14:53
leon de boer28-Dec-19 14:53 
GeneralRe: Abstract Factory Design/Linked List Problem Pin
Richard MacCutchan28-Dec-19 21:49
mveRichard MacCutchan28-Dec-19 21:49 
AnswerRe: Abstract Factory Design/Linked List Problem Pin
Stefan_Lang6-Jan-20 0:22
Stefan_Lang6-Jan-20 0:22 
Questionqueues to find minimum time to serve all. Pin
Jiopik27-Dec-19 19:01
Jiopik27-Dec-19 19:01 
AnswerRe: queues to find minimum time to serve all. Pin
Richard MacCutchan27-Dec-19 22:01
mveRichard MacCutchan27-Dec-19 22:01 
AnswerRe: queues to find minimum time to serve all. Pin
leon de boer28-Dec-19 14:40
leon de boer28-Dec-19 14:40 
QuestionHow to check if USB filter driver be installed by MFC? Pin
yufengchien26-Dec-19 22:19
yufengchien26-Dec-19 22:19 

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.