Click here to Skip to main content
15,910,009 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralBOOL vs. bool Pin
Roman Nurik26-Feb-02 10:20
Roman Nurik26-Feb-02 10:20 
GeneralRe: BOOL vs. bool Pin
Carlos Antollini26-Feb-02 10:29
Carlos Antollini26-Feb-02 10:29 
GeneralRe: BOOL vs. bool Pin
Tim Smith26-Feb-02 10:25
Tim Smith26-Feb-02 10:25 
GeneralRe: BOOL vs. bool Pin
Felix Cho26-Feb-02 10:24
Felix Cho26-Feb-02 10:24 
GeneralRe: BOOL vs. bool Pin
Tim Smith26-Feb-02 10:24
Tim Smith26-Feb-02 10:24 
GeneralRe: BOOL vs. bool Pin
Mukkie28-Feb-02 11:42
Mukkie28-Feb-02 11:42 
GeneralRe: BOOL vs. bool Pin
Roman Nurik26-Feb-02 10:27
Roman Nurik26-Feb-02 10:27 
Questionis this good practice? Pin
Roman Nurik26-Feb-02 10:17
Roman Nurik26-Feb-02 10:17 
frst of all, thanks to Bill Wilson for answering my naming conventions post Big Grin | :-D



i realized that many of my classes have Get/Set members for very simple variables like integers or such. it's very annoying to manage these functions as the member variables change data type and name a lot throughout my coding process.

is it good practice to make the member variables just public (and not have "m_" precede them) or is there some easy way to manaage Get/Set functions?

also, if public member variables is the way to go, i'd like to have a pointer class to manage dynamic memory and stuff like that.. sort of like a smart pointer... is there an already existing class that would allow for that or do iu have to make one?

p.s. i tried auto_ptr but it seems that that class only sets the pointer in its constructor Frown | :(

>>Roman<<
AnswerRe: is this good practice? Pin
Nemanja Trifunovic26-Feb-02 10:27
Nemanja Trifunovic26-Feb-02 10:27 
GeneralRe: is this good practice? Pin
Roman Nurik26-Feb-02 10:24
Roman Nurik26-Feb-02 10:24 
GeneralRe: is this good practice? Pin
Christian Graus26-Feb-02 10:54
protectorChristian Graus26-Feb-02 10:54 
GeneralRe: is this good practice? Pin
Maximilien26-Feb-02 11:01
Maximilien26-Feb-02 11:01 
GeneralRe: is this good practice? Pin
Michael Dunn26-Feb-02 11:41
sitebuilderMichael Dunn26-Feb-02 11:41 
GeneralRe: is this good practice? Pin
Carlos Antollini26-Feb-02 10:31
Carlos Antollini26-Feb-02 10:31 
AnswerRe: is this good practice? Pin
Jon Hulatt27-Feb-02 1:04
Jon Hulatt27-Feb-02 1:04 
GeneralRe: is this good practice? Pin
Bill Wilson27-Feb-02 8:05
Bill Wilson27-Feb-02 8:05 
GeneralRe: is this good practice? Pin
Roman Nurik27-Feb-02 9:43
Roman Nurik27-Feb-02 9:43 
AnswerRe: is this good practice? Pin
Stan Shannon27-Feb-02 1:29
Stan Shannon27-Feb-02 1:29 
GeneralOpenGl opening files Pin
Nnamdi Onyeyiri26-Feb-02 10:08
Nnamdi Onyeyiri26-Feb-02 10:08 
GeneralAuto-complete file combo Pin
Chris Losinger26-Feb-02 8:52
professionalChris Losinger26-Feb-02 8:52 
GeneralRe: Auto-complete file combo Pin
Michael Dunn26-Feb-02 11:42
sitebuilderMichael Dunn26-Feb-02 11:42 
GeneralRe: Auto-complete file combo Pin
Chris Losinger26-Feb-02 12:24
professionalChris Losinger26-Feb-02 12:24 
Generalnevermind... Pin
Chris Losinger26-Feb-02 13:44
professionalChris Losinger26-Feb-02 13:44 
GeneralGlobalAddAtom and RegisterHotKey Pin
26-Feb-02 8:41
suss26-Feb-02 8:41 
GeneralRe: GlobalAddAtom and RegisterHotKey Pin
Carlos Antollini26-Feb-02 9:03
Carlos Antollini26-Feb-02 9:03 

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.