Click here to Skip to main content
15,921,941 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Memory Leak Pin
Jijo.Raj3-Jul-08 1:10
Jijo.Raj3-Jul-08 1:10 
AnswerRe: Memory Leak Pin
Hamid_RT3-Jul-08 1:40
Hamid_RT3-Jul-08 1:40 
Questionhow to make messenger styple popup in bottom right corner Pin
garyofcourse3-Jul-08 0:07
garyofcourse3-Jul-08 0:07 
AnswerRe: how to make messenger styple popup in bottom right corner Pin
Nibu babu thomas3-Jul-08 0:50
Nibu babu thomas3-Jul-08 0:50 
GeneralRe: how to make messenger styple popup in bottom right corner Pin
garyofcourse3-Jul-08 3:59
garyofcourse3-Jul-08 3:59 
QuestionA very intersting code Pin
Dracula Wang3-Jul-08 0:03
Dracula Wang3-Jul-08 0:03 
AnswerRe: A very intersting code Pin
Dracula Wang3-Jul-08 0:07
Dracula Wang3-Jul-08 0:07 
GeneralRe: A very intersting code Pin
KarstenK3-Jul-08 1:07
mveKarstenK3-Jul-08 1:07 
QuestionHow can set text of button at runtime? Pin
Le@rner2-Jul-08 23:47
Le@rner2-Jul-08 23:47 
AnswerRe: How can set text of button at runtime? Pin
Rajesh R Subramanian2-Jul-08 23:53
professionalRajesh R Subramanian2-Jul-08 23:53 
AnswerRe: How can set text of button at runtime? Pin
_AnsHUMAN_ 2-Jul-08 23:54
_AnsHUMAN_ 2-Jul-08 23:54 
AnswerRe: How can set text of button at runtime? Pin
Paresh Chitte2-Jul-08 23:54
Paresh Chitte2-Jul-08 23:54 
AnswerRe: How can set text of button at runtime? Pin
Hamid_RT3-Jul-08 1:38
Hamid_RT3-Jul-08 1:38 
QuestionUAC in Vista Pin
subramanyeswari2-Jul-08 23:35
subramanyeswari2-Jul-08 23:35 
QuestionRe: UAC in Vista Pin
Rajesh R Subramanian2-Jul-08 23:55
professionalRajesh R Subramanian2-Jul-08 23:55 
AnswerRe: UAC in Vista Pin
subramanyeswari3-Jul-08 2:17
subramanyeswari3-Jul-08 2:17 
GeneralRe: UAC in Vista Pin
Nibu babu thomas3-Jul-08 3:35
Nibu babu thomas3-Jul-08 3:35 
QuestionHow to Clear IE history under a limited account of VISTA Pin
moye25012-Jul-08 22:26
moye25012-Jul-08 22:26 
QuestionThe stack conventions are different in AfxBeginThread and CreateThread Pin
followait2-Jul-08 21:37
followait2-Jul-08 21:37 
AnswerRe: The stack conventions are different in AfxBeginThread and CreateThread Pin
Iain Clarke, Warrior Programmer2-Jul-08 22:03
Iain Clarke, Warrior Programmer2-Jul-08 22:03 
AnswerRe: The stack conventions are different in AfxBeginThread and CreateThread Pin
Saurabh.Garg2-Jul-08 22:12
Saurabh.Garg2-Jul-08 22:12 
QuestionRe: The stack conventions are different in AfxBeginThread and CreateThread Pin
CPallini2-Jul-08 22:22
mveCPallini2-Jul-08 22:22 
AnswerRe: The stack conventions are different in AfxBeginThread and CreateThread Pin
Saurabh.Garg2-Jul-08 22:27
Saurabh.Garg2-Jul-08 22:27 
AnswerRe: The stack conventions are different in AfxBeginThread and CreateThread Pin
Roger Stoltz2-Jul-08 22:23
Roger Stoltz2-Jul-08 22:23 
QuestionHow to hide a public function inherit from base class Pin
Dracula Wang2-Jul-08 21:27
Dracula Wang2-Jul-08 21:27 
I have 2 classes, B inherit from A, but actually A have a function: fun should not present in B, so I code as blow,
class A{
public:
    virtual void fun(){cout << "a" << endl; };
};

class B : public A{
    virtual void fun(){};
};


But this take no effect, I can call the fun in class b,
int main()
{
    A a;
    B b;
    A *pa = new B;

    a.fun();
    b.A::fun();
    pa->fun();
}

the output is
a
a

How to decline the function call?
Thanks.

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.