Click here to Skip to main content
15,905,566 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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.
QuestionRe: How to hide a public function inherit from base class Pin
CPallini2-Jul-08 21:36
mveCPallini2-Jul-08 21:36 
AnswerRe: How to hide a public function inherit from base class Pin
Dracula Wang2-Jul-08 21:50
Dracula Wang2-Jul-08 21:50 
QuestionRe: How to hide a public function inherit from base class Pin
CPallini2-Jul-08 21:56
mveCPallini2-Jul-08 21:56 
AnswerRe: How to hide a public function inherit from base class Pin
Dracula Wang2-Jul-08 22:05
Dracula Wang2-Jul-08 22:05 
AnswerRe: How to hide a public function inherit from base class Pin
BadKarma3-Jul-08 1:21
BadKarma3-Jul-08 1:21 
QuestionFloating point assembler code [modified] Pin
Tomerland2-Jul-08 20:56
Tomerland2-Jul-08 20:56 
AnswerRe: Floating point assembler code Pin
Roger Stoltz3-Jul-08 2:09
Roger Stoltz3-Jul-08 2:09 
AnswerRe: Floating point assembler code Pin
Alan Balkany3-Jul-08 4:57
Alan Balkany3-Jul-08 4:57 
QuestionHow to struct AA{ struct BB; }; struct BB { struct AA; }; Pin
Chesnokov Yuriy2-Jul-08 20:55
professionalChesnokov Yuriy2-Jul-08 20:55 
AnswerRe: How to struct AA{ struct BB; }; struct BB { struct AA; }; Pin
Saurabh.Garg2-Jul-08 21:02
Saurabh.Garg2-Jul-08 21:02 
AnswerRe: How to struct AA{ struct BB; }; struct BB { struct AA; }; Pin
Chesnokov Yuriy2-Jul-08 21:33
professionalChesnokov Yuriy2-Jul-08 21:33 
GeneralRe: How to struct AA{ struct BB; }; struct BB { struct AA; }; Pin
Saurabh.Garg2-Jul-08 21:40
Saurabh.Garg2-Jul-08 21:40 
QuestionRe: How to struct AA{ struct BB; }; struct BB { struct AA; }; Pin
Chesnokov Yuriy2-Jul-08 21:49
professionalChesnokov Yuriy2-Jul-08 21:49 
AnswerRe: How to struct AA{ struct BB; }; struct BB { struct AA; }; Pin
Saurabh.Garg2-Jul-08 22:10
Saurabh.Garg2-Jul-08 22:10 
QuestionRe: How to struct AA{ struct BB; }; struct BB { struct AA; }; Pin
Chesnokov Yuriy2-Jul-08 22:31
professionalChesnokov Yuriy2-Jul-08 22:31 
AnswerRe: How to struct AA{ struct BB; }; struct BB { struct AA; }; Pin
Chesnokov Yuriy2-Jul-08 21:42
professionalChesnokov Yuriy2-Jul-08 21:42 
AnswerRe: How to struct AA{ struct BB; }; struct BB { struct AA; }; Pin
Stephen Hewitt2-Jul-08 21:10
Stephen Hewitt2-Jul-08 21:10 

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.