Click here to Skip to main content
16,004,828 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: caption bar Pin
James R. Twine30-Nov-06 5:06
James R. Twine30-Nov-06 5:06 
QuestionHelp,Why GDI+ MapMode(MM_LOMETRIC ) is reversed? Pin
unakie30-Nov-06 1:20
unakie30-Nov-06 1:20 
QuestionWhat is the object Slicing Feature in C++ Pin
phijophlip30-Nov-06 0:42
phijophlip30-Nov-06 0:42 
AnswerRe: What is the object Slicing Feature in C++ Pin
Cedric Moonen30-Nov-06 1:21
Cedric Moonen30-Nov-06 1:21 
QuestionBlinking item's picture Tree Control Pin
GameProfessor30-Nov-06 0:42
GameProfessor30-Nov-06 0:42 
AnswerRe: Blinking item's picture Tree Control Pin
James R. Twine30-Nov-06 5:10
James R. Twine30-Nov-06 5:10 
QuestionCan I Call virutal function from a default Constructor in c++ Pin
phijophlip30-Nov-06 0:38
phijophlip30-Nov-06 0:38 
AnswerRe: Can I Call virutal function from a default Constructor in c++ Pin
Waldermort30-Nov-06 0:57
Waldermort30-Nov-06 0:57 
The short answer is yes, but I would advise against it. A virtual method will propegate down to the derived class. But when you call the derived class' c'tor it will initialize the base class first. So, in the derived method, if you are relying on any members being initialized, they won't be. This may lead to hard to spot problems later in your code.

Pseudo code:
call derived c'tor<br />
call base c'tor<br />
initialize base members<br />
call virtual method<br />
use un-initialized derived member<br />
initialize derived members

GeneralRe: Can I Call virutal function from a default Constructor in c++ Pin
Blake Miller30-Nov-06 8:13
Blake Miller30-Nov-06 8:13 
GeneralRe: Can I Call virutal function from a default Constructor in c++ Pin
Waldermort30-Nov-06 9:11
Waldermort30-Nov-06 9:11 
AnswerRe: Can I Call virutal function from a default Constructor in c++ Pin
Cedric Moonen30-Nov-06 1:31
Cedric Moonen30-Nov-06 1:31 
QuestionCannot Overload sizeof Operator in C++ Why? Pin
phijophlip30-Nov-06 0:31
phijophlip30-Nov-06 0:31 
AnswerRe: Cannot Overload sizeof Operator in C++ Why? Pin
toxcct30-Nov-06 2:36
toxcct30-Nov-06 2:36 
GeneralRe: Cannot Overload sizeof Operator in C++ Why? Pin
James R. Twine30-Nov-06 5:15
James R. Twine30-Nov-06 5:15 
Questionmin and max Pin
Waldermort30-Nov-06 0:05
Waldermort30-Nov-06 0:05 
AnswerRe: min and max Pin
Chris Losinger30-Nov-06 3:54
professionalChris Losinger30-Nov-06 3:54 
GeneralRe: min and max Pin
Waldermort30-Nov-06 6:07
Waldermort30-Nov-06 6:07 
GeneralRe: min and max Pin
Chris Losinger30-Nov-06 6:10
professionalChris Losinger30-Nov-06 6:10 
Questionchanging 24 bit image to 16 or 8 bit image in VC++ Pin
Ruth Suhasini29-Nov-06 23:44
Ruth Suhasini29-Nov-06 23:44 
AnswerRe: changing 24 bit image to 16 or 8 bit image in VC++ Pin
#realJSOP30-Nov-06 0:16
professional#realJSOP30-Nov-06 0:16 
AnswerRe: changing 24 bit image to 16 or 8 bit image in VC++ Pin
flyalone30-Nov-06 15:57
flyalone30-Nov-06 15:57 
QuestionImage processing Pin
atbir29-Nov-06 23:12
atbir29-Nov-06 23:12 
AnswerRe: Image processing Pin
Christian Graus29-Nov-06 23:26
protectorChristian Graus29-Nov-06 23:26 
AnswerRe: Image processing Pin
Maximilien30-Nov-06 1:58
Maximilien30-Nov-06 1:58 
AnswerRe: Image processing Pin
Galatei30-Nov-06 4:04
Galatei30-Nov-06 4:04 

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.