Click here to Skip to main content
15,922,427 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: srandom and random Pin
Richard MacCutchan9-Jan-20 1:26
mveRichard MacCutchan9-Jan-20 1:26 
SuggestionRe: srandom and random Pin
David Crow9-Jan-20 3:25
David Crow9-Jan-20 3:25 
GeneralRe: srandom and random Pin
_Flaviu9-Jan-20 6:42
_Flaviu9-Jan-20 6:42 
GeneralRe: srandom and random Pin
k50549-Jan-20 9:03
mvek50549-Jan-20 9:03 
GeneralRe: srandom and random Pin
_Flaviu9-Jan-20 21:03
_Flaviu9-Jan-20 21:03 
GeneralRe: srandom and random Pin
Victor Nijegorodov9-Jan-20 22:51
Victor Nijegorodov9-Jan-20 22:51 
QuestionRedirect to my struct Pin
_Flaviu7-Jan-20 21:58
_Flaviu7-Jan-20 21:58 
AnswerRe: Redirect to my struct Pin
Afzaal Ahmad Zeeshan7-Jan-20 22:11
professionalAfzaal Ahmad Zeeshan7-Jan-20 22:11 
GeneralRe: Redirect to my struct Pin
_Flaviu7-Jan-20 22:38
_Flaviu7-Jan-20 22:38 
GeneralRe: Redirect to my struct Pin
_Flaviu8-Jan-20 0:29
_Flaviu8-Jan-20 0:29 
GeneralRe: Redirect to my struct Pin
Richard MacCutchan8-Jan-20 2:21
mveRichard MacCutchan8-Jan-20 2:21 
GeneralRe: Redirect to my struct Pin
_Flaviu8-Jan-20 3:15
_Flaviu8-Jan-20 3:15 
GeneralRe: Redirect to my struct Pin
k50548-Jan-20 3:38
mvek50548-Jan-20 3:38 
GeneralRe: Redirect to my struct Pin
_Flaviu8-Jan-20 18:59
_Flaviu8-Jan-20 18:59 
GeneralRe: Redirect to my struct Pin
Richard MacCutchan8-Jan-20 3:44
mveRichard MacCutchan8-Jan-20 3:44 
GeneralRe: Redirect to my struct Pin
leon de boer8-Jan-20 6:00
leon de boer8-Jan-20 6:00 
GeneralRe: Redirect to my struct Pin
_Flaviu8-Jan-20 7:09
_Flaviu8-Jan-20 7:09 
AnswerRe: Redirect to my struct Pin
Richard MacCutchan7-Jan-20 22:14
mveRichard MacCutchan7-Jan-20 22:14 
AnswerRe: Redirect to my struct Pin
phil.o7-Jan-20 22:33
professionalphil.o7-Jan-20 22:33 
GeneralRe: Redirect to my struct Pin
_Flaviu7-Jan-20 22:43
_Flaviu7-Jan-20 22:43 
AnswerRe: Redirect to my struct Pin
k50548-Jan-20 4:00
mvek50548-Jan-20 4:00 
GeneralRe: Redirect to my struct Pin
_Flaviu8-Jan-20 7:18
_Flaviu8-Jan-20 7:18 
AnswerRe: Redirect to my struct Pin
Stefan_Lang8-Jan-20 21:44
Stefan_Lang8-Jan-20 21:44 
Questionerror C3861: 'major': identifier not found Pin
_Flaviu6-Jan-20 22:29
_Flaviu6-Jan-20 22:29 
I have met another error while converting the project:

C++
error C3861: 'major': identifier not found
error C3861: 'minor': identifier not found

these are defined somewhere into gcc/linux. But can I use it in my win32/mfc project ? I have tried:
C++
#define major(dev) gnu_dev_major(dev)
#define minor(dev) gnu_dev_minor(dev)

but then gnu_dev_major is the problem. Of course, I have dig in on internet, and I haven't found something that solve the issue: gnu_dev_major(3): manage device number - Linux man page[^], or c++ - major and minor macros defined in sys/sysmacros.h pulled in by <iterator> - Stack Overflow[^]

How can I overcome this error ?
AnswerRe: error C3861: 'major': identifier not found Pin
Victor Nijegorodov6-Jan-20 23:49
Victor Nijegorodov6-Jan-20 23:49 

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.