Click here to Skip to main content
15,924,507 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: opening an .mdb file Pin
Demian Panello25-Feb-08 4:37
Demian Panello25-Feb-08 4:37 
GeneralRe: opening an .mdb file Pin
Anandi.VC25-Feb-08 5:00
Anandi.VC25-Feb-08 5:00 
GeneralRe: opening an .mdb file Pin
Hamid_RT25-Feb-08 6:50
Hamid_RT25-Feb-08 6:50 
GeneralWay of the messages and effect on other applications Pin
baerten25-Feb-08 2:50
baerten25-Feb-08 2:50 
GeneralRe: Way of the messages and effect on other applications Pin
Dr. Emmett Brown25-Feb-08 5:16
Dr. Emmett Brown25-Feb-08 5:16 
GeneralRe: Way of the messages and effect on other applications Pin
Ali Rafiee25-Feb-08 5:28
Ali Rafiee25-Feb-08 5:28 
GeneralCompiler Warning C4373 about virtual methods Pin
George_George25-Feb-08 2:38
George_George25-Feb-08 2:38 
AnswerRe: Compiler Warning C4373 about virtual methods Pin
Rajkumar R25-Feb-08 5:07
Rajkumar R25-Feb-08 5:07 
"function arguments of a type modified by const or volatile are not treated differently
than the base type for the purposes of overloading." from msdn;

that is
"int goo (const int)" and "int goo (int)" are not considered as two overloaded function,
it causes redeclaration error. you cannot have two definitions for each of this.

So, while overriding, "virtual int goo (const int )" and "virtual int goo (int input)"
is not considered as two different functions and compiler prior to VS 2008 binds to the
method in base class and issues warning "C4301: 'Derived::goo': overriding virtual function
only differs from 'Base::goo' by const/volatile qualifier"
while VS 2008 bind the function to the method in the derived class, then issue
warning C4373 ignoring qualifiers. "This latter behavior complies with the C++ standard."


George_George wrote:
1. What means "bind"?
Putting function pointer into the vtable of the related class?

yes.


George_George wrote:
2. const is ignored in derived class?

explained above.
GeneralRe: Compiler Warning C4373 about virtual methods Pin
George_George25-Feb-08 18:30
George_George25-Feb-08 18:30 
GeneralRe: Compiler Warning C4373 about virtual methods Pin
Matthew Faithfull25-Feb-08 5:41
Matthew Faithfull25-Feb-08 5:41 
GeneralRe: Compiler Warning C4373 about virtual methods Pin
George_George25-Feb-08 18:33
George_George25-Feb-08 18:33 
GeneralRe: Compiler Warning C4373 about virtual methods Pin
Matthew Faithfull25-Feb-08 22:59
Matthew Faithfull25-Feb-08 22:59 
GeneralRe: Compiler Warning C4373 about virtual methods Pin
George_George25-Feb-08 23:35
George_George25-Feb-08 23:35 
GeneralRe: Compiler Warning C4373 about virtual methods Pin
Matthew Faithfull25-Feb-08 23:43
Matthew Faithfull25-Feb-08 23:43 
GeneralRe: Compiler Warning C4373 about virtual methods Pin
George_George26-Feb-08 15:09
George_George26-Feb-08 15:09 
GeneralRe: Compiler Warning C4373 about virtual methods [modified] Pin
Rajkumar R26-Feb-08 3:11
Rajkumar R26-Feb-08 3:11 
GeneralRe: Compiler Warning C4373 about virtual methods Pin
George_George26-Feb-08 15:13
George_George26-Feb-08 15:13 
GeneralRe: Compiler Warning C4373 about virtual methods Pin
Rajkumar R26-Feb-08 19:24
Rajkumar R26-Feb-08 19:24 
GeneralRe: Compiler Warning C4373 about virtual methods Pin
George_George26-Feb-08 21:18
George_George26-Feb-08 21:18 
GeneralCasting ULARGE_INTEGER as FILETIME Pin
Ben Aldhouse25-Feb-08 2:07
Ben Aldhouse25-Feb-08 2:07 
GeneralRe: Casting ULARGE_INTEGER as FILETIME Pin
David Crow25-Feb-08 2:19
David Crow25-Feb-08 2:19 
GeneralRe: Casting ULARGE_INTEGER as FILETIME Pin
Ben Aldhouse25-Feb-08 3:10
Ben Aldhouse25-Feb-08 3:10 
QuestionRe: Casting ULARGE_INTEGER as FILETIME Pin
David Crow25-Feb-08 3:53
David Crow25-Feb-08 3:53 
GeneralRe: Casting ULARGE_INTEGER as FILETIME Pin
Ben Aldhouse25-Feb-08 5:02
Ben Aldhouse25-Feb-08 5:02 
QuestionRe: Casting ULARGE_INTEGER as FILETIME Pin
David Crow25-Feb-08 5:09
David Crow25-Feb-08 5:09 

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.