Click here to Skip to main content
15,886,069 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Date Picker Control - Need to switch from British to American Format. Pin
Don Jones BNYMellon15-Apr-09 7:36
Don Jones BNYMellon15-Apr-09 7:36 
QuestionRe: Date Picker Control - Need to switch from British to American Format. Pin
David Crow15-Apr-09 7:39
David Crow15-Apr-09 7:39 
AnswerRe: Date Picker Control - Need to switch from British to American Format. Pin
Don Jones BNYMellon15-Apr-09 8:00
Don Jones BNYMellon15-Apr-09 8:00 
GeneralRe: Date Picker Control - Need to switch from British to American Format. Pin
Don Jones BNYMellon15-Apr-09 8:17
Don Jones BNYMellon15-Apr-09 8:17 
GeneralRe: Date Picker Control - Need to switch from British to American Format. Pin
David Crow15-Apr-09 9:15
David Crow15-Apr-09 9:15 
Questionhow to get the linux kernel version in cpp program Pin
scamguru15-Apr-09 3:09
scamguru15-Apr-09 3:09 
AnswerRe: how to get the linux kernel version in cpp program Pin
ParagPatel15-Apr-09 3:31
ParagPatel15-Apr-09 3:31 
GeneralRe: how to get the linux kernel version in cpp program Pin
scamguru15-Apr-09 4:12
scamguru15-Apr-09 4:12 
lOOKS LIKE this doesn't work for me. I saw the version.h file, it has got 3 lines as below.

#define UTS_RELEASE "2.4.20"
#define LINUX_VERSION_CODE 132116
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))


And I want to differentiate kernels for 2.4 and 2.6. Is the above code still works with it.I've placed my code as below, but it seems not working.

#include "/usr/include/linux/version.h"


#if RHEL_MAJOR=2.4.20
#include "../../build/i686-Linux-2.4.32/ReleaseVersion.hh"
#else
#include "../../build/i686-Linux-2.6.21/ReleaseVersion.hh"
#endif

What went wrong in my case.

Thanks in advance WTF | :WTF:
GeneralRe: how to get the linux kernel version in cpp program Pin
ParagPatel15-Apr-09 4:28
ParagPatel15-Apr-09 4:28 
GeneralRe: how to get the linux kernel version in cpp program Pin
scamguru15-Apr-09 4:40
scamguru15-Apr-09 4:40 
Questionerror LNK2001 Pin
venera_soft15-Apr-09 3:00
venera_soft15-Apr-09 3:00 
QuestionRe: error LNK2001 Pin
David Crow15-Apr-09 3:23
David Crow15-Apr-09 3:23 
AnswerRe: error LNK2001 Pin
venera_soft17-Apr-09 3:31
venera_soft17-Apr-09 3:31 
AnswerRe: error LNK2001 Pin
Stuart Dootson15-Apr-09 3:39
professionalStuart Dootson15-Apr-09 3:39 
AnswerRe: error LNK2001 Pin
venera_soft17-Apr-09 3:32
venera_soft17-Apr-09 3:32 
QuestionCListCtrl::OnTimer() Pin
Radhakrishnan G.15-Apr-09 2:34
Radhakrishnan G.15-Apr-09 2:34 
AnswerRe: CListCtrl::OnTimer() Pin
ParagPatel15-Apr-09 2:47
ParagPatel15-Apr-09 2:47 
GeneralRe: CListCtrl::OnTimer() Pin
Radhakrishnan G.15-Apr-09 2:52
Radhakrishnan G.15-Apr-09 2:52 
Question"Image after text" option in MFC Treeview Pin
mutpan15-Apr-09 2:25
mutpan15-Apr-09 2:25 
AnswerRe: "Image after text" option in MFC Treeview Pin
Maximilien15-Apr-09 3:19
Maximilien15-Apr-09 3:19 
AnswerRe: "Image after text" option in MFC Treeview Pin
Stuart Dootson15-Apr-09 3:21
professionalStuart Dootson15-Apr-09 3:21 
Questionplease help me ! change matrix... Pin
akinal198615-Apr-09 2:21
akinal198615-Apr-09 2:21 
AnswerRe: please help me ! change matrix... Pin
Cedric Moonen15-Apr-09 2:31
Cedric Moonen15-Apr-09 2:31 
GeneralRe: please help me ! change matrix... Pin
CPallini15-Apr-09 6:06
mveCPallini15-Apr-09 6:06 
AnswerRe: please help me ! change matrix... Pin
akinal198615-Apr-09 15:37
akinal198615-Apr-09 15:37 

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.