Click here to Skip to main content
15,911,035 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: DT_CALCRECT with DT_WORDBREAK Pin
_T("No name")3-Feb-09 1:02
_T("No name")3-Feb-09 1:02 
QuestionWhy does my dialog controls disappear ? Pin
kapardhi3-Feb-09 0:08
kapardhi3-Feb-09 0:08 
AnswerRe: Why does my dialog controls disappear ? Pin
Cedric Moonen3-Feb-09 0:12
Cedric Moonen3-Feb-09 0:12 
GeneralRe: Why does my dialog controls disappear ? Pin
kapardhi3-Feb-09 0:17
kapardhi3-Feb-09 0:17 
GeneralRe: Why does my dialog controls disappear ? Pin
CPallini3-Feb-09 0:28
mveCPallini3-Feb-09 0:28 
GeneralRe: Why does my dialog controls disappear ? Pin
Cedric Moonen3-Feb-09 0:56
Cedric Moonen3-Feb-09 0:56 
QuestionWhat is complier actually doing here ? Pin
ComplexLifeForm2-Feb-09 23:56
ComplexLifeForm2-Feb-09 23:56 
AnswerRe: What is complier actually doing here ? Pin
Cedric Moonen3-Feb-09 0:04
Cedric Moonen3-Feb-09 0:04 
When you have a virtual function, the compiler will create a virtual table (also called vtable) in your class which contains the address of all virtual functions (in this case, the address of the Derived::PrintMethod). At that point, it doesn't make any difference if the derived virtual function is private or not. You are calling the function on a base pointer, and there's no way for the compiler to know if the derived function is public or not (the compiler has no way to know what is the real type of your pointer at compile time). The compiler just access the virtual table and redirect the call to the derived method.

Cédric Moonen
Software developer

Charting control [v1.5]
OpenGL game tutorial in C++

AnswerRe: What is complier actually doing here ? Pin
CPallini3-Feb-09 0:05
mveCPallini3-Feb-09 0:05 
AnswerRe: What is complier actually doing here ? Pin
«_Superman_»3-Feb-09 1:10
professional«_Superman_»3-Feb-09 1:10 
Questionfloating point precision issue Pin
Sarath C2-Feb-09 23:42
Sarath C2-Feb-09 23:42 
AnswerRe: floating point precision issue Pin
Cedric Moonen2-Feb-09 23:53
Cedric Moonen2-Feb-09 23:53 
GeneralRe: floating point precision issue [modified] Pin
Sarath C3-Feb-09 0:38
Sarath C3-Feb-09 0:38 
GeneralRe: floating point precision issue Pin
Cedric Moonen3-Feb-09 0:48
Cedric Moonen3-Feb-09 0:48 
GeneralRe: floating point precision issue Pin
Sarath C3-Feb-09 0:55
Sarath C3-Feb-09 0:55 
GeneralRe: floating point precision issue Pin
Stuart Dootson3-Feb-09 1:06
professionalStuart Dootson3-Feb-09 1:06 
AnswerRe: floating point precision issue Pin
CPallini3-Feb-09 0:00
mveCPallini3-Feb-09 0:00 
AnswerRe: floating point precision issue Pin
Stuart Dootson3-Feb-09 0:38
professionalStuart Dootson3-Feb-09 0:38 
AnswerRe: floating point precision issue Pin
David Crow3-Feb-09 4:47
David Crow3-Feb-09 4:47 
QuestionCompile time error for 'string.h' Pin
Supriya Tonape2-Feb-09 23:33
Supriya Tonape2-Feb-09 23:33 
AnswerRe: Compile time error for 'string.h' Pin
Cedric Moonen2-Feb-09 23:37
Cedric Moonen2-Feb-09 23:37 
GeneralRe: Compile time error for 'string.h' Pin
Supriya Tonape2-Feb-09 23:44
Supriya Tonape2-Feb-09 23:44 
AnswerRe: Compile time error for 'string.h' Pin
prasad_som3-Feb-09 3:27
prasad_som3-Feb-09 3:27 
QuestionRe: Compile time error for 'string.h' Pin
David Crow3-Feb-09 4:50
David Crow3-Feb-09 4:50 
AnswerRe: Compile time error for 'string.h' Pin
Supriya Tonape12-Feb-09 0:33
Supriya Tonape12-Feb-09 0:33 

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.