Click here to Skip to main content
15,920,438 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionevent viewer writting problem Pin
_tasleem9-Aug-06 21:16
_tasleem9-Aug-06 21:16 
AnswerRe: event viewer writting problem Pin
kakan9-Aug-06 23:27
professionalkakan9-Aug-06 23:27 
Questionvirtual destructor Pin
lavate malllik9-Aug-06 21:07
lavate malllik9-Aug-06 21:07 
AnswerRe: virtual destructor Pin
ThatsAlok9-Aug-06 21:19
ThatsAlok9-Aug-06 21:19 
GeneralRe: virtual destructor Pin
lavate malllik9-Aug-06 21:29
lavate malllik9-Aug-06 21:29 
AnswerRe: virtual destructor Pin
toxcct9-Aug-06 21:26
toxcct9-Aug-06 21:26 
GeneralRe: virtual destructor Pin
lavate malllik9-Aug-06 21:32
lavate malllik9-Aug-06 21:32 
GeneralRe: virtual destructor Pin
Zac Howland10-Aug-06 4:17
Zac Howland10-Aug-06 4:17 
Here is a very simple illustration on how they work:

class Base
{
public:
	Base()			{ cout << "Base::Base()" << endl; }
	virtual ~Base()		{ cout << "Base::~Base()" << endl; }
};

class Derived : public Base
{
public:
	Derived()		{ cout << "Derived::Derived()" << endl; }
	virtual ~Derived()	{ cout << "Derived::~Derived()" << endl; }
};

void main()
{
	Base b;
	Derived d;
}


Output:
Base::Base()
Base::Base()
Derived::Derived()
Derived::~Derived()
Base::~Base()
Base::~Base()

If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week

Zac

AnswerRe: virtual destructor Pin
Hamid_RT9-Aug-06 21:29
Hamid_RT9-Aug-06 21:29 
Questionautomation ,passing bitmap in MSWord Pin
Sopi Singh9-Aug-06 20:51
Sopi Singh9-Aug-06 20:51 
QuestionSerial port communication using VC++ Pin
I_arora9-Aug-06 20:38
I_arora9-Aug-06 20:38 
AnswerRe: Serial port communication using VC++ Pin
Cedric Moonen9-Aug-06 21:02
Cedric Moonen9-Aug-06 21:02 
AnswerRe: Serial port communication using VC++ Pin
ThatsAlok9-Aug-06 21:20
ThatsAlok9-Aug-06 21:20 
AnswerRe: Serial port communication using VC++ Pin
David Crow10-Aug-06 3:28
David Crow10-Aug-06 3:28 
AnswerRe: Serial port communication using VC++ Pin
normanS10-Aug-06 4:49
normanS10-Aug-06 4:49 
AnswerRe: Serial port communication using VC++ Pin
Hamid_RT10-Aug-06 8:22
Hamid_RT10-Aug-06 8:22 
QuestionPlease help !!!! Pin
Bravoone_20069-Aug-06 20:22
Bravoone_20069-Aug-06 20:22 
AnswerRe: Please help !!!! Pin
sujtha9-Aug-06 20:44
sujtha9-Aug-06 20:44 
QuestionRe: Please help !!!! Pin
Bravoone_20069-Aug-06 21:24
Bravoone_20069-Aug-06 21:24 
AnswerRe: Please help !!!! Pin
Hamid_RT9-Aug-06 21:29
Hamid_RT9-Aug-06 21:29 
GeneralRe: Please help !!!! Pin
Bravoone_20069-Aug-06 21:37
Bravoone_20069-Aug-06 21:37 
GeneralRe: Please help !!!! Pin
Hamid_RT9-Aug-06 21:47
Hamid_RT9-Aug-06 21:47 
GeneralRe: Please help !!!! Pin
Bravoone_20069-Aug-06 22:01
Bravoone_20069-Aug-06 22:01 
GeneralRe: Please help !!!! Pin
Hamid_RT9-Aug-06 22:40
Hamid_RT9-Aug-06 22:40 
GeneralRe: Please help !!!! Pin
Hamid_RT10-Aug-06 8:20
Hamid_RT10-Aug-06 8:20 

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.