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

C / C++ / MFC

 
QuestionRe: I want to create a treeview with my structure/class variable as nodes and update the same with custom values Pin
Shibu Krishnan22-Feb-15 7:36
Shibu Krishnan22-Feb-15 7:36 
AnswerRe: I want to create a treeview with my structure/class variable as nodes and update the same with custom values Pin
Richard MacCutchan22-Feb-15 7:48
mveRichard MacCutchan22-Feb-15 7:48 
GeneralRe: I want to create a treeview with my structure/class variable as nodes and update the same with custom values Pin
Shibu Krishnan22-Feb-15 8:01
Shibu Krishnan22-Feb-15 8:01 
QuestionConst VS Defines Pin
chaq68616-Feb-15 15:00
professionalchaq68616-Feb-15 15:00 
GeneralRe: Const VS Defines Pin
PIEBALDconsult16-Feb-15 16:26
mvePIEBALDconsult16-Feb-15 16:26 
GeneralRe: Const VS Defines Pin
chaq68616-Feb-15 17:46
professionalchaq68616-Feb-15 17:46 
GeneralRe: Const VS Defines Pin
Peter_in_278016-Feb-15 18:52
professionalPeter_in_278016-Feb-15 18:52 
AnswerRe: Const VS Defines Pin
Freak3016-Feb-15 21:43
Freak3016-Feb-15 21:43 
I would go the second way, mostly for not polluting the global namespace. Also you should set the types to static const float, assuming they are not supposed to change during runtime. I like to name constants in all upper case, but that's just a personal preferrence.
The good thing about pessimism is, that you are always either right or pleasently surprised.

QuestionMessage Closed Pin
16-Feb-15 22:10
mveCPallini16-Feb-15 22:10 
AnswerMessage Closed Pin
16-Feb-15 22:52
professionalOrjan Westin16-Feb-15 22:52 
AnswerRe: Const VS Defines Pin
Orjan Westin16-Feb-15 23:02
professionalOrjan Westin16-Feb-15 23:02 
GeneralRe: Const VS Defines Pin
SoMad17-Feb-15 5:13
professionalSoMad17-Feb-15 5:13 
GeneralRe: Const VS Defines Pin
Albert Holguin17-Feb-15 10:40
professionalAlbert Holguin17-Feb-15 10:40 
GeneralRe: Const VS Defines Pin
Orjan Westin17-Feb-15 23:38
professionalOrjan Westin17-Feb-15 23:38 
AnswerRe: Const VS Defines Pin
Albert Holguin17-Feb-15 10:42
professionalAlbert Holguin17-Feb-15 10:42 
GeneralRe: Const VS Defines Pin
Daniel Pfeffer18-Feb-15 6:13
professionalDaniel Pfeffer18-Feb-15 6:13 
GeneralRe: Const VS Defines Pin
Albert Holguin18-Feb-15 8:42
professionalAlbert Holguin18-Feb-15 8:42 
GeneralRe: Const VS Defines Pin
Daniel Pfeffer18-Feb-15 21:53
professionalDaniel Pfeffer18-Feb-15 21:53 
GeneralRe: Const VS Defines Pin
Stefan_Lang18-Feb-15 22:22
Stefan_Lang18-Feb-15 22:22 
GeneralRe: Const VS Defines Pin
Daniel Pfeffer18-Feb-15 22:50
professionalDaniel Pfeffer18-Feb-15 22:50 
GeneralRe: Const VS Defines Pin
Stefan_Lang19-Feb-15 0:33
Stefan_Lang19-Feb-15 0:33 
GeneralRe: Const VS Defines Pin
Stefan_Lang18-Feb-15 22:08
Stefan_Lang18-Feb-15 22:08 
AnswerRe: Const VS Defines Pin
den2k8818-Feb-15 22:52
professionalden2k8818-Feb-15 22:52 
QuestionAdd Record in MySQL Pin
Django_Untaken16-Feb-15 3:22
Django_Untaken16-Feb-15 3:22 
AnswerRe: Add Record in MySQL Pin
Richard Andrew x6416-Feb-15 5:25
professionalRichard Andrew x6416-Feb-15 5:25 

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.