Click here to Skip to main content
14,239,386 members

C / C++ / MFC

 
AnswerRe: How to print all source code what was running? Pin
Stefan_Lang28-Jan-19 1:46
memberStefan_Lang28-Jan-19 1:46 
QuestionHow to change the background color of checkbox in CListCtrl? Pin
manoharbalu23-Jan-19 19:05
membermanoharbalu23-Jan-19 19:05 
SuggestionRe: How to change the background color of checkbox in CListCtrl? Pin
Richard MacCutchan23-Jan-19 22:37
protectorRichard MacCutchan23-Jan-19 22:37 
GeneralRe: How to change the background color of checkbox in CListCtrl? Pin
manoharbalu24-Jan-19 1:35
membermanoharbalu24-Jan-19 1:35 
QuestionTools to refactor C++ code - Rad studio Pin
ptr_Electron23-Jan-19 17:48
memberptr_Electron23-Jan-19 17:48 
AnswerRe: Tools to refactor C++ code - Rad studio Pin
Richard MacCutchan23-Jan-19 22:33
protectorRichard MacCutchan23-Jan-19 22:33 
AnswerRe: Tools to refactor C++ code - Rad studio Pin
Maximilien24-Jan-19 8:36
memberMaximilien24-Jan-19 8:36 
AnswerRe: Tools to refactor C++ code - Rad studio Pin
Stefan_Lang25-Jan-19 3:54
memberStefan_Lang25-Jan-19 3:54 
A warning typically means that while the code is legitmate with respect to the C++ syntax, the compiler suspects that it might be doing something else than what the programmer intended. Since the computer can't guess what's in the head of the programmer, there's no safe way for it to automatically fix it.

If you have so many warnings, it's probably best to watch out for very common types of warnings, pick one of these, and focus on fixing that warning everywhere in the code, ignoring other warnings. Most of the time you'll quickly be able to spot certain patterns, and fixing these errors should therefore be possible almost without thinking after a while. It will still take time, but that way it's probably a lot faster than working on all warnings by order of occurrence.

P.S.: if your goal is refactoring the entire code, then eliminating warnings is the last of your concerns! First you need tests, to ensure that the refactored code really produces the same results. Then you need to start with the lowest level functions, and then work your way up. Chances are, that changes in your low level functions require adjustments higher up, and that could very well affect code that currently issues warnings. It would be pointless to fix warnings first and then change that same code again due to low-level refactoring, so you better don't do that so early!
GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)


modified 25-Jan-19 10:04am.

QuestionWhat are the security risks by embedding the Python in C++ application, if any. Pin
oleg6322-Jan-19 9:11
professionaloleg6322-Jan-19 9:11 
AnswerRe: What are the security risks by embedding the Python in C++ application, if any. Pin
Joe Woodbury22-Jan-19 10:40
professionalJoe Woodbury22-Jan-19 10:40 
QuestionWhat extensions for Visual Studio can you recommend? Pin
Froddo22-Jan-19 5:53
memberFroddo22-Jan-19 5:53 
AnswerRe: What extensions for Visual Studio can you recommend? Pin
Victor Nijegorodov22-Jan-19 10:13
memberVictor Nijegorodov22-Jan-19 10:13 
GeneralRe: What extensions for Visual Studio can you recommend? Pin
Froddo23-Jan-19 3:40
memberFroddo23-Jan-19 3:40 
GeneralRe: What extensions for Visual Studio can you recommend? Pin
Member 1412742230-Jan-19 4:27
memberMember 1412742230-Jan-19 4:27 
GeneralRe: What extensions for Visual Studio can you recommend? Pin
Froddo31-Jan-19 1:25
memberFroddo31-Jan-19 1:25 
GeneralRe: What extensions for Visual Studio can you recommend? Pin
Member 141274221-Feb-19 6:27
memberMember 141274221-Feb-19 6:27 
GeneralRe: What extensions for Visual Studio can you recommend? Pin
Froddo12-Feb-19 6:48
memberFroddo12-Feb-19 6:48 
QuestionSetCheck() for checkbox in MFC GridControl 2.7 Pin
Anu_Bala21-Jan-19 18:16
memberAnu_Bala21-Jan-19 18:16 
AnswerRe: SetCheck() for checkbox in MFC GridControl 2.7 Pin
Richard MacCutchan21-Jan-19 22:43
protectorRichard MacCutchan21-Jan-19 22:43 
Questioncourse distribution system project in algorithm source code? Pin
Member 1412522921-Jan-19 10:07
memberMember 1412522921-Jan-19 10:07 
GeneralRe: course distribution system project in algorithm source code? Pin
David Crow21-Jan-19 10:27
memberDavid Crow21-Jan-19 10:27 
GeneralRe: course distribution system project in algorithm source code? Pin
CPallini21-Jan-19 10:35
mveCPallini21-Jan-19 10:35 
GeneralRe: course distribution system project in algorithm source code? Pin
Joe Woodbury21-Jan-19 10:37
professionalJoe Woodbury21-Jan-19 10:37 
AnswerRe: course distribution system project in algorithm source code? Pin
Stefan_Lang21-Jan-19 21:16
memberStefan_Lang21-Jan-19 21:16 
QuestionChoosing my next Programming Language Pin
HS_C_Student21-Jan-19 2:49
memberHS_C_Student21-Jan-19 2: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.