Click here to Skip to main content
15,914,488 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: compile error cannot convert 'this' pointer Pin
Stephen Hewitt24-Feb-08 17:31
Stephen Hewitt24-Feb-08 17:31 
GeneralRe: compile error cannot convert 'this' pointer Pin
George_George24-Feb-08 17:46
George_George24-Feb-08 17:46 
QuestionAnybody know where this article went? Pin
netengineer24-Feb-08 16:30
netengineer24-Feb-08 16:30 
GeneralRe: Anybody know where this article went? Pin
Hamid_RT25-Feb-08 6:56
Hamid_RT25-Feb-08 6:56 
GeneralLiskov substitution principle Pin
George_George24-Feb-08 15:55
George_George24-Feb-08 15:55 
AnswerRe: Liskov substitution principle Pin
Rajkumar R24-Feb-08 19:28
Rajkumar R24-Feb-08 19:28 
GeneralRe: Liskov substitution principle Pin
George_George24-Feb-08 20:23
George_George24-Feb-08 20:23 
AnswerRe: Liskov substitution principle Pin
Rajkumar R24-Feb-08 20:36
Rajkumar R24-Feb-08 20:36 
George_George wrote:
What means "if u r implementing all the functions in every class" and "you are able to apply the property, class propertyQ"? What do you mean all the functions and every class?



struct subTypeA
{
	subTypeA()
		: m_iContext(0)
	{
	}
	void operate1()
	{
		m_iContext = 1;		
	}

	void operate2()
	{
		m_iContext = 2;		
	}
	private:
	int m_iContext;
};

struct subTypeB
{
	subTypeB()
		: m_iContext(0)
	{
	}
	void operate1()
	{
		m_iContext = 1;		
	}

	void operate2()
	{
		m_iContext = 2;		
	}
private:
	int m_iContext;
};


it is obvious.

now the propery q(subTypeA) and q(subTypeB) both works
propertyQ <subTypeA>::QMethod1(objA);
propertyQ <subTypeB>::QMethod1(objB);
GeneralRe: Liskov substitution principle Pin
George_George24-Feb-08 21:02
George_George24-Feb-08 21:02 
GeneralRe: Liskov substitution principle Pin
Rajkumar R24-Feb-08 23:08
Rajkumar R24-Feb-08 23:08 
GeneralRe: Liskov substitution principle Pin
George_George24-Feb-08 23:17
George_George24-Feb-08 23:17 
Generalhelp Pin
gentleguy24-Feb-08 15:25
gentleguy24-Feb-08 15:25 
GeneralRepost! Pin
leckey24-Feb-08 15:40
leckey24-Feb-08 15:40 
GeneralRe: Repost! Pin
gentleguy24-Feb-08 21:04
gentleguy24-Feb-08 21:04 
QuestionRe: Repost! Pin
Rajkumar R24-Feb-08 21:57
Rajkumar R24-Feb-08 21:57 
GeneralRe: Repost! Pin
gentleguy24-Feb-08 23:01
gentleguy24-Feb-08 23:01 
GeneralRe: Repost! Pin
Maxwell Chen24-Feb-08 23:08
Maxwell Chen24-Feb-08 23:08 
AnswerRe: Repost! Pin
Rajkumar R25-Feb-08 1:09
Rajkumar R25-Feb-08 1:09 
GeneralUser Identity Pin
Bram van Kampen24-Feb-08 14:39
Bram van Kampen24-Feb-08 14:39 
AnswerRe: User Identity Pin
Rajesh R Subramanian24-Feb-08 18:22
professionalRajesh R Subramanian24-Feb-08 18:22 
General[Message Deleted] Pin
Shontay24-Feb-08 13:50
Shontay24-Feb-08 13:50 
QuestionRe: Could anyone help me Pin
Rajkumar R25-Feb-08 1:00
Rajkumar R25-Feb-08 1:00 
GeneralRe: Could anyone help me Pin
Shontay25-Feb-08 1:22
Shontay25-Feb-08 1:22 
QuestionRe: Could anyone help me Pin
Rajkumar R25-Feb-08 2:59
Rajkumar R25-Feb-08 2:59 
QuestionRe: Could anyone help me Pin
David Crow25-Feb-08 3:03
David Crow25-Feb-08 3: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.