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

C / C++ / MFC

 
AnswerRe: how to lock function? Pin
CPallini16-Sep-13 21:18
mveCPallini16-Sep-13 21:18 
AnswerRe: how to lock function? Pin
Freak3016-Sep-13 22:06
Freak3016-Sep-13 22:06 
GeneralRe: how to lock function? Pin
pasztorpisti17-Sep-13 0:27
pasztorpisti17-Sep-13 0:27 
QuestionWhat does it mean when...... Pin
Richard Andrew x6416-Sep-13 10:42
professionalRichard Andrew x6416-Sep-13 10:42 
AnswerRe: What does it mean when...... Pin
Graham Breach16-Sep-13 11:26
Graham Breach16-Sep-13 11:26 
GeneralRe: What does it mean when...... Pin
Richard Andrew x6416-Sep-13 11:51
professionalRichard Andrew x6416-Sep-13 11:51 
QuestionFeedback appreciated Pin
Marco Bertschi16-Sep-13 0:15
protectorMarco Bertschi16-Sep-13 0:15 
AnswerRe: Feedback appreciated Pin
pasztorpisti16-Sep-13 0:54
pasztorpisti16-Sep-13 0:54 
I've just taken a quick look at your article but I agree with the guy. To me it seems that you are a C programmer who is quite new in C++. Defines should be avoided whenever possible. In a lot of cases defines can be replaced with template/inline functions. In some other cases long macros can be replaced to a combination of a short macro + template/inline functions/classes. Macros don't respect name spaces and they arent type safe. Still, some small stupid problems can be solved practically only with macros (for example automatically logging out filename/linenumber/functionname can be done only with a logger macro). But even when you are using a macro its better to keep the body of the macro short by immediately calling a function or intantiating/using a class. Using typedef on structs in C++ is awkward and using header guards is also deprecated in my opinion, in a large project you got a very strange error message with a duplicate (for example copy-pasted) header guard and today all major compilers support "#pragma once".
AnswerRe: Feedback appreciated Pin
Richard MacCutchan16-Sep-13 0:54
mveRichard MacCutchan16-Sep-13 0:54 
AnswerRe: Feedback appreciated - OT Pin
Richard MacCutchan16-Sep-13 20:39
mveRichard MacCutchan16-Sep-13 20:39 
GeneralRe: Feedback appreciated - OT Pin
SoMad16-Sep-13 21:23
professionalSoMad16-Sep-13 21:23 
GeneralRe: Feedback appreciated - OT Pin
Marco Bertschi16-Sep-13 21:59
protectorMarco Bertschi16-Sep-13 21:59 
AnswerRe: Feedback appreciated Pin
Stefan_Lang17-Sep-13 1:42
Stefan_Lang17-Sep-13 1:42 
AnswerRe: Feedback appreciated Pin
Vaclav_17-Sep-13 10:21
Vaclav_17-Sep-13 10:21 
Questiondebug begining: Unhandled exception at 0x77cf15de in blast_vib_proc.exe: 0xC00000FD: Stack overflow. Pin
mrby12314-Sep-13 16:18
mrby12314-Sep-13 16:18 
SuggestionRe: debug begining: Unhandled exception at 0x77cf15de in blast_vib_proc.exe: 0xC00000FD: Stack overflow. Pin
Richard MacCutchan14-Sep-13 21:42
mveRichard MacCutchan14-Sep-13 21:42 
AnswerRe: debug begining: Unhandled exception at 0x77cf15de in blast_vib_proc.exe: 0xC00000FD: Stack overflow. Pin
Marco Bertschi15-Sep-13 10:39
protectorMarco Bertschi15-Sep-13 10:39 
Questionas soon as start program got error message - stack overflow Pin
mrby12313-Sep-13 19:35
mrby12313-Sep-13 19:35 
AnswerRe: as soon as start program got error message - stack overflow Pin
Richard MacCutchan13-Sep-13 22:26
mveRichard MacCutchan13-Sep-13 22:26 
GeneralRe: as soon as start program got error message - stack overflow Pin
CPallini14-Sep-13 6:45
mveCPallini14-Sep-13 6:45 
AnswerRe: as soon as start program got error message - stack overflow Pin
Jochen Arndt13-Sep-13 22:32
professionalJochen Arndt13-Sep-13 22:32 
AnswerRe: as soon as start program got error message - stack overflow Pin
Erudite_Eric14-Sep-13 21:39
Erudite_Eric14-Sep-13 21:39 
SuggestionGetting forward from console applications to gui Pin
Farhan_Karim13-Sep-13 3:10
Farhan_Karim13-Sep-13 3:10 
GeneralRe: Getting forward from console applications to gui Pin
Richard MacCutchan13-Sep-13 3:44
mveRichard MacCutchan13-Sep-13 3:44 
GeneralRe: Getting forward from console applications to gui Pin
Farhan_Karim13-Sep-13 8:09
Farhan_Karim13-Sep-13 8:09 

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.