Click here to Skip to main content
15,890,579 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Developing a gui toolkit Pin
«_Superman_»27-Dec-09 16:10
professional«_Superman_»27-Dec-09 16:10 
GeneralRe: Developing a gui toolkit Pin
bi0phaz327-Dec-09 16:12
bi0phaz327-Dec-09 16:12 
GeneralRe: Developing a gui toolkit Pin
«_Superman_»27-Dec-09 16:15
professional«_Superman_»27-Dec-09 16:15 
QuestionWaking from Sleep/Hybernation Pin
Bram van Kampen27-Dec-09 11:47
Bram van Kampen27-Dec-09 11:47 
AnswerRe: Waking from Sleep/Hybernation Pin
«_Superman_»27-Dec-09 15:08
professional«_Superman_»27-Dec-09 15:08 
GeneralRe: Waking from Sleep/Hybernation Pin
Bram van Kampen28-Dec-09 0:47
Bram van Kampen28-Dec-09 0:47 
GeneralRe: Waking from Sleep/Hybernation Pin
Nelek28-Dec-09 0:55
protectorNelek28-Dec-09 0:55 
GeneralRe: Waking from Sleep/Hybernation Pin
Bram van Kampen28-Dec-09 1:37
Bram van Kampen28-Dec-09 1:37 
QuestionHow to get the parent proccess's path Pin
Joseph Marzbani26-Dec-09 21:38
Joseph Marzbani26-Dec-09 21:38 
AnswerRe: How to get the parent proccess's path Pin
Stephen Hewitt26-Dec-09 23:09
Stephen Hewitt26-Dec-09 23:09 
AnswerRe: How to get the parent proccess's path Pin
rp_suman27-Dec-09 0:25
rp_suman27-Dec-09 0:25 
AnswerRe: How to get the parent proccess's path Pin
Bram van Kampen27-Dec-09 11:50
Bram van Kampen27-Dec-09 11:50 
GeneralRe: How to get the parent proccess's path Pin
raja jamwal31-Dec-09 8:47
raja jamwal31-Dec-09 8:47 
GeneralRe: How to get the parent proccess's path Pin
Bram van Kampen3-Jan-10 23:48
Bram van Kampen3-Jan-10 23:48 
GeneralRe: How to get the parent proccess's path Pin
raja jamwal9-Jan-10 4:06
raja jamwal9-Jan-10 4:06 
GeneralRe: How to get the parent proccess's path Pin
Bram van Kampen9-Jan-10 16:10
Bram van Kampen9-Jan-10 16:10 
Questiongood encapsulation technique ? [modified] Pin
doug2526-Dec-09 10:03
doug2526-Dec-09 10:03 
AnswerRe: good encapsulation technique ? Pin
Jimmanuel26-Dec-09 14:44
Jimmanuel26-Dec-09 14:44 
AnswerRe: good encapsulation technique ? Pin
«_Superman_»26-Dec-09 16:43
professional«_Superman_»26-Dec-09 16:43 
GeneralRe: good encapsulation technique ? [modified] Pin
doug2527-Dec-09 0:05
doug2527-Dec-09 0:05 
GeneralRe: good encapsulation technique ? Pin
Cedric Moonen27-Dec-09 1:53
Cedric Moonen27-Dec-09 1:53 
GeneralRe: good encapsulation technique ? Pin
doug2527-Dec-09 2:05
doug2527-Dec-09 2:05 
yes, I know what protected means Smile | :) , I think for projects that aren't personal i'll use the get standard, but I'm not keen on it because sometimes it could be useful to be able to modify protected members in global scope, so I've come up with the following to compensate for the rare circumstances :

//#define EDITINGCODE

#ifdef EDITINGCODE
	#define PROTECTED protected
#else
	#define PROTECTED public
#endif

// Using PROTECTED allows the declaration of
// member variables that shouldn't be modified
// without using member functions
// while they can be read from
// within any scope

class Class1
{
PROTECTED:
	int var;
};


thanks for the advice however
GeneralRe: good encapsulation technique ? Pin
BonshatS27-Dec-09 3:14
BonshatS27-Dec-09 3:14 
GeneralRe: good encapsulation technique ? Pin
doug2527-Dec-09 6:02
doug2527-Dec-09 6:02 
GeneralRe: good encapsulation technique ? Pin
Bram van Kampen27-Dec-09 12:03
Bram van Kampen27-Dec-09 12: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.