Polymorphism
Mar. 9th, 2004 09:37 amYou can get stuck in your ways, as I've rambled on about more times than not lately, and this year continues to be one of new experiences.
Finding something out new and trying something new are different types of experience however. The latter is proactive, you go out and try something you haven't before - although it may be that the former is involved as you have to think of this new experience in some way before you can try it.
However, gaining new knowledge or new insight about something is entirely different, if it's a bit of "Well I never knew that" or a "I really should have guessed that". It's a little spark or 'blimey' that pops above your head, lightbulb fashion.
Todays "I really should have guessed that." was brought to me by Polymorphism, MFC and the humble function statement...
m_ctrlEditText.UpdateData(TRUE);
It went a little like this...
"I just want to update the text for the edit box," thinks I, "Not the whole dialog"
"Then, erm, just do that" my brain replies, "It's polymorphic, the functionality will be included in the text edit object."
"Bloody hell brain, you may be right."
"I am right, you just never thought of that before."
"You're right, I hadn't."
"Sometimes I wonder where you'd be without me."
"Who knows?"
Todays bonus lightbulb is the humble 40W SES Candle bulb.
Finding something out new and trying something new are different types of experience however. The latter is proactive, you go out and try something you haven't before - although it may be that the former is involved as you have to think of this new experience in some way before you can try it.
However, gaining new knowledge or new insight about something is entirely different, if it's a bit of "Well I never knew that" or a "I really should have guessed that". It's a little spark or 'blimey' that pops above your head, lightbulb fashion.
Todays "I really should have guessed that." was brought to me by Polymorphism, MFC and the humble function statement...
m_ctrlEditText.UpdateData(TRUE);
It went a little like this...
"I just want to update the text for the edit box," thinks I, "Not the whole dialog"
"Then, erm, just do that" my brain replies, "It's polymorphic, the functionality will be included in the text edit object."
"Bloody hell brain, you may be right."
"I am right, you just never thought of that before."
"You're right, I hadn't."
"Sometimes I wonder where you'd be without me."
"Who knows?"
Todays bonus lightbulb is the humble 40W SES Candle bulb.