Click here to Skip to main content
15,889,335 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Draw in front of bitmap Pin
lor7527-Jun-15 22:22
lor7527-Jun-15 22:22 
QuestionClass or object? Pin
Vaclav_26-Jun-15 5:32
Vaclav_26-Jun-15 5:32 
SuggestionRe: Class or object? Pin
David Crow26-Jun-15 5:54
David Crow26-Jun-15 5:54 
AnswerRe: Class or object? Pin
Maximilien26-Jun-15 7:24
Maximilien26-Jun-15 7:24 
AnswerRe: Class or object? PinPopular
CPallini26-Jun-15 8:05
mveCPallini26-Jun-15 8:05 
GeneralRe: Class or object? Pin
Albert Holguin26-Jun-15 10:26
professionalAlbert Holguin26-Jun-15 10:26 
AnswerRe: Class or object? Pin
Albert Holguin26-Jun-15 10:30
professionalAlbert Holguin26-Jun-15 10:30 
AnswerRe: Class or object? Pin
Stefan_Lang30-Jun-15 23:50
Stefan_Lang30-Jun-15 23:50 
If you intend to follow the object-oriented paradigm, then prefixing a variable name with 'o' for 'object' makes about as much sense as prefixing it with 'v' for 'variable'. You might still consider this sensible, to visibly discern them from type names, constants, and functions though. YMMV.

As for 'c' (class) prefix, it's often used to distinguish type names from e. g. structs, integral types, enums, etc.. I used (and still use) this a lot, but the longer I think about it the less sense it appears to make: modern editors provide all the information you need by just hovering over the name in question, much more information in fact than you could ever sensibly pack into a prefix. The prefix therefore only carries valuable information if you tend to print out code and prefer analyzing code on paper. Again, not my preference, but YMMV.
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)

GeneralRe: Class or object? Pin
_Flaviu1-Jul-15 22:17
_Flaviu1-Jul-15 22:17 
GeneralRe: Class or object? Pin
Stefan_Lang1-Jul-15 22:36
Stefan_Lang1-Jul-15 22:36 
GeneralRe: Class or object? Pin
_Flaviu2-Jul-15 1:21
_Flaviu2-Jul-15 1:21 
AnswerRe: Class or object? Pin
Kevin McFarlane6-Jul-15 23:16
Kevin McFarlane6-Jul-15 23:16 
QuestionVery simple binary file compressor in C Pin
stonemanhero26-Jun-15 1:52
stonemanhero26-Jun-15 1:52 
AnswerRe: Very simple binary file compressor in C Pin
CPallini26-Jun-15 3:00
mveCPallini26-Jun-15 3:00 
QuestionCreating a standalone exe with Visual Studio 2013 native unit tests? Pin
Joe Woodbury25-Jun-15 10:53
professionalJoe Woodbury25-Jun-15 10:53 
SuggestionRe: Creating a standalone exe with Visual Studio 2013 native unit tests? Pin
Albert Holguin26-Jun-15 10:40
professionalAlbert Holguin26-Jun-15 10:40 
GeneralRe: Creating a standalone exe with Visual Studio 2013 native unit tests? Pin
Joe Woodbury26-Jun-15 11:15
professionalJoe Woodbury26-Jun-15 11:15 
QuestionCan resource statement CTEXT be used with CStatic Pin
ForNow24-Jun-15 9:09
ForNow24-Jun-15 9:09 
AnswerRe: Can resource statement CTEXT be used with CStatic Pin
CPallini24-Jun-15 12:09
mveCPallini24-Jun-15 12:09 
GeneralRe: Can resource statement CTEXT be used with CStatic Pin
ForNow24-Jun-15 12:44
ForNow24-Jun-15 12:44 
QuestionWindows 8.1 Event log problem Pin
zeki yugnak24-Jun-15 3:32
zeki yugnak24-Jun-15 3:32 
QuestionRe: Windows 8.1 Event log problem Pin
David Crow24-Jun-15 3:46
David Crow24-Jun-15 3:46 
AnswerRe: Windows 8.1 Event log problem Pin
zeki yugnak24-Jun-15 4:16
zeki yugnak24-Jun-15 4:16 
QuestionHow to best pull together data from multiple sources (hardware sensors) in Win32? Pin
MW-83121724-Jun-15 2:29
MW-83121724-Jun-15 2:29 
AnswerRe: How to best pull together data from multiple sources (hardware sensors) in Win32? Pin
CPallini24-Jun-15 2:37
mveCPallini24-Jun-15 2: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.