Click here to Skip to main content
11,496,146 members (814 online)

C / C++ / MFC

The site is currently in read-only mode for maintenance. Posting of new items will be available again shortly.
 
QuestionRe: Unable to set focus in CPropertyPage in MFC. update solved?? Pin
DavidCrow18-Sep-13 3:50
memberDavidCrow18-Sep-13 3:50 
AnswerRe: Unable to set focus in CPropertyPage in MFC. update solved?? Pin
Vaclav_Sal18-Sep-13 8:50
memberVaclav_Sal18-Sep-13 8:50 
QuestionOutlook Addins Pin
john563216-Sep-13 23:55
memberjohn563216-Sep-13 23:55 
AnswerRe: Outlook Addins Pin
Richard MacCutchan17-Sep-13 1:31
mvpRichard MacCutchan17-Sep-13 1:31 
Questionhow to lock function? Pin
JoneLe8616-Sep-13 19:09
memberJoneLe8616-Sep-13 19:09 
AnswerRe: how to lock function? Pin
Richard MacCutchan16-Sep-13 21:41
mvpRichard MacCutchan16-Sep-13 21:41 
AnswerRe: how to lock function? Pin
CPallini16-Sep-13 22:18
mvpCPallini16-Sep-13 22:18 
AnswerRe: how to lock function? Pin
Freak3016-Sep-13 23:06
memberFreak3016-Sep-13 23:06 
GeneralRe: how to lock function? Pin
pasztorpisti17-Sep-13 1:27
memberpasztorpisti17-Sep-13 1:27 
QuestionWhat does it mean when...... Pin
Richard Andrew x6416-Sep-13 11:42
professionalRichard Andrew x6416-Sep-13 11:42 
AnswerRe: What does it mean when...... Pin
Graham Breach16-Sep-13 12:26
memberGraham Breach16-Sep-13 12:26 
GeneralRe: What does it mean when...... Pin
Richard Andrew x6416-Sep-13 12:51
professionalRichard Andrew x6416-Sep-13 12:51 
QuestionFeedback appreciated Pin
_Psychopomp_16-Sep-13 1:15
professional_Psychopomp_16-Sep-13 1:15 
AnswerRe: Feedback appreciated Pin
pasztorpisti16-Sep-13 1:54
memberpasztorpisti16-Sep-13 1: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 1:54
mvpRichard MacCutchan16-Sep-13 1:54 
AnswerRe: Feedback appreciated - OT Pin
Richard MacCutchan16-Sep-13 21:39
mvpRichard MacCutchan16-Sep-13 21:39 
GeneralRe: Feedback appreciated - OT Pin
SoMad16-Sep-13 22:23
professionalSoMad16-Sep-13 22:23 
GeneralRe: Feedback appreciated - OT Pin
_Psychopomp_16-Sep-13 22:59
professional_Psychopomp_16-Sep-13 22:59 
AnswerRe: Feedback appreciated Pin
Stefan_Lang17-Sep-13 2:42
memberStefan_Lang17-Sep-13 2:42 
AnswerRe: Feedback appreciated Pin
Vaclav_Sal17-Sep-13 11:21
memberVaclav_Sal17-Sep-13 11:21 
Questiondebug begining: Unhandled exception at 0x77cf15de in blast_vib_proc.exe: 0xC00000FD: Stack overflow. Pin
mrby12314-Sep-13 17:18
membermrby12314-Sep-13 17:18 
SuggestionRe: debug begining: Unhandled exception at 0x77cf15de in blast_vib_proc.exe: 0xC00000FD: Stack overflow. Pin
Richard MacCutchan14-Sep-13 22:42
mvpRichard MacCutchan14-Sep-13 22:42 
AnswerRe: debug begining: Unhandled exception at 0x77cf15de in blast_vib_proc.exe: 0xC00000FD: Stack overflow. Pin
_Psychopomp_15-Sep-13 11:39
professional_Psychopomp_15-Sep-13 11:39 
Questionas soon as start program got error message - stack overflow Pin
mrby12313-Sep-13 20:35
membermrby12313-Sep-13 20:35 
AnswerRe: as soon as start program got error message - stack overflow Pin
Richard MacCutchan13-Sep-13 23:26
mvpRichard MacCutchan13-Sep-13 23:26 
GeneralRe: as soon as start program got error message - stack overflow Pin
CPallini14-Sep-13 7:45
mvpCPallini14-Sep-13 7:45 
AnswerRe: as soon as start program got error message - stack overflow Pin
Jochen Arndt13-Sep-13 23:32
professionalJochen Arndt13-Sep-13 23:32 
AnswerRe: as soon as start program got error message - stack overflow Pin
Erudite_Eric14-Sep-13 22:39
memberErudite_Eric14-Sep-13 22:39 
SuggestionGetting forward from console applications to gui Pin
Farhan_Karim13-Sep-13 4:10
memberFarhan_Karim13-Sep-13 4:10 
GeneralRe: Getting forward from console applications to gui Pin
Richard MacCutchan13-Sep-13 4:44
mvpRichard MacCutchan13-Sep-13 4:44 
GeneralRe: Getting forward from console applications to gui Pin
Farhan_Karim13-Sep-13 9:09
memberFarhan_Karim13-Sep-13 9:09 
GeneralRe: Getting forward from console applications to gui Pin
jschell13-Sep-13 12:36
memberjschell13-Sep-13 12:36 
AnswerRe: Getting forward from console applications to gui Pin
_Psychopomp_15-Sep-13 11:41
professional_Psychopomp_15-Sep-13 11:41 
QuestionProblem with const struct initialization in a class Pin
_Psychopomp_13-Sep-13 3:47
professional_Psychopomp_13-Sep-13 3:47 
QuestionRe: Problem with const struct initialization in a class Pin
DavidCrow13-Sep-13 10:52
memberDavidCrow13-Sep-13 10:52 
AnswerRe: Problem with const struct initialization in a class Pin
_Psychopomp_13-Sep-13 11:02
professional_Psychopomp_13-Sep-13 11:02 
AnswerRe: Problem with const struct initialization in a class Pin
Kosta Cherry13-Sep-13 17:17
memberKosta Cherry13-Sep-13 17:17 
AnswerRe: Problem with const struct initialization in a class Pin
Erudite_Eric14-Sep-13 22:43
memberErudite_Eric14-Sep-13 22:43 
AnswerRe: Problem with const struct initialization in a class Pin
_Psychopomp_15-Sep-13 11:35
professional_Psychopomp_15-Sep-13 11:35 
AnswerRe: Problem with const struct initialization in a class Pin
Stefan_Lang17-Sep-13 1:34
memberStefan_Lang17-Sep-13 1:34 
Questionlistview with tooltip Pin
JoneLe8612-Sep-13 19:16
memberJoneLe8612-Sep-13 19:16 
AnswerRe: listview with tooltip Pin
Richard MacCutchan13-Sep-13 4:35
mvpRichard MacCutchan13-Sep-13 4:35 
Questiongetting pointer to document from OnGetTabToolTip in MDI tabbed app Pin
Member 258447412-Sep-13 7:41
memberMember 258447412-Sep-13 7:41 
SuggestionRe: getting pointer to document from OnGetTabToolTip in MDI tabbed app Pin
DavidCrow12-Sep-13 17:10
memberDavidCrow12-Sep-13 17:10 
GeneralRe: getting pointer to document from OnGetTabToolTip in MDI tabbed app Pin
Member 258447412-Sep-13 19:01
memberMember 258447412-Sep-13 19:01 
GeneralRe: getting pointer to document from OnGetTabToolTip in MDI tabbed app Pin
Member 258447412-Sep-13 19:04
memberMember 258447412-Sep-13 19:04 
AnswerRe: getting pointer to document from OnGetTabToolTip in MDI tabbed app Pin
jeron113-Sep-13 6:20
memberjeron113-Sep-13 6:20 
GeneralRe: getting pointer to document from OnGetTabToolTip in MDI tabbed app Pin
Member 258447413-Sep-13 8:39
memberMember 258447413-Sep-13 8:39 
QuestionResizing Controls and Texts Pin
Don Guy11-Sep-13 15:00
memberDon Guy11-Sep-13 15:00 
AnswerRe: Resizing Controls and Texts Pin
digitalspace.xjtu11-Sep-13 16:02
memberdigitalspace.xjtu11-Sep-13 16:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web04 | 2.8.150520.1 | Last Updated 30 May 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid