Click here to Skip to main content
15,908,274 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: What is Socket Notification Sink Pin
Girish60126-Jan-06 21:38
Girish60126-Jan-06 21:38 
Questionhow to show CFormView Pin
Odiee24-Jan-06 2:47
Odiee24-Jan-06 2:47 
AnswerRe: how to show CFormView Pin
Vipin Aravind24-Jan-06 3:21
Vipin Aravind24-Jan-06 3:21 
Questiongracefull shutdown Pin
Rajni Kant24-Jan-06 2:23
Rajni Kant24-Jan-06 2:23 
QuestionCustom combobox Pin
Nishad S24-Jan-06 1:40
Nishad S24-Jan-06 1:40 
AnswerRe: Custom combobox Pin
James Brown24-Jan-06 8:24
James Brown24-Jan-06 8:24 
GeneralRe: Custom combobox Pin
Nishad S24-Jan-06 16:42
Nishad S24-Jan-06 16:42 
QuestionError occure when destructor is not virtual ? Pin
vikas amin24-Jan-06 1:28
vikas amin24-Jan-06 1:28 
If i have a base class and a derived class the
destrutor of the base class is not virtual & i
use a Base ptr to point to Derived Object.
An error occures and the base destructor is not called .Why??

class Base<br />
		{<br />
		public:<br />
			Base() {<br />
			cout << "Constructor: Base" << endl;<br />
			}<br />
<br />
			~Base(){<br />
			cout << "Destructor : Base" << endl;<br />
			}<br />
		};<br />
<br />
<br />
<br />
		class temp<br />
		{<br />
		public:<br />
			temp() {<br />
			cout << "Constructor: temp" << endl;<br />
			}<br />
<br />
			~temp(){<br />
			cout << "Destructor : temp" << endl;<br />
			}<br />
		};<br />
<br />
<br />
<br />
		class Derived: public Base ,virtual temp<br />
		{<br />
		public:<br />
			Derived(){ <br />
			cout << "Constructor: Derived" << endl;<br />
			}<br />
<br />
			~Derived(){<br />
			cout << "Destructor : Derived" << endl;<br />
			}<br />
		};<br />
<br />
<br />
	int main(void)<br />
	{<br />
		Base *Var = new Base();<br />
		delete Var;<br />
		return 0;<br />
	}




Vikas Amin
Embin Technology
Bombay
AnswerRe: Error occure when destructor is not virtual ? Pin
Cedric Moonen24-Jan-06 2:51
Cedric Moonen24-Jan-06 2:51 
GeneralRe: Error occure when destructor is not virtual ? Pin
vikas amin24-Jan-06 19:22
vikas amin24-Jan-06 19:22 
AnswerRe: Error occure when destructor is not virtual ? Pin
sunit524-Jan-06 6:47
sunit524-Jan-06 6:47 
QuestionInstaller pack of MFC app. Pin
Aryan S24-Jan-06 1:26
Aryan S24-Jan-06 1:26 
QuestionStatic WndProc() Pin
virtualrush24-Jan-06 1:25
virtualrush24-Jan-06 1:25 
AnswerRe: Static WndProc() Pin
Vipin Aravind24-Jan-06 2:55
Vipin Aravind24-Jan-06 2:55 
AnswerRe: Static WndProc() Pin
Cedric Moonen24-Jan-06 3:02
Cedric Moonen24-Jan-06 3:02 
QuestionCFormView in MDI Pin
anandforu24-Jan-06 0:14
anandforu24-Jan-06 0:14 
AnswerRe: CFormView in MDI Pin
Vipin Aravind24-Jan-06 2:51
Vipin Aravind24-Jan-06 2:51 
GeneralRe: CFormView in MDI Pin
anand_dayalans24-Jan-06 5:40
anand_dayalans24-Jan-06 5:40 
GeneralRe: CFormView in MDI Pin
anand_dayalans24-Jan-06 5:49
anand_dayalans24-Jan-06 5:49 
QuestionCreate TabView for IShellPropSheetExt Pin
souso2024-Jan-06 0:12
souso2024-Jan-06 0:12 
QuestionRemote Task manager Pin
SatyaDY24-Jan-06 0:03
SatyaDY24-Jan-06 0:03 
AnswerRe: Remote Task manager Pin
NarasimhuluM24-Jan-06 0:31
NarasimhuluM24-Jan-06 0:31 
AnswerRe: Remote Task manager Pin
Robsori24-Jan-06 0:33
Robsori24-Jan-06 0:33 
GeneralRe: Remote Task manager Pin
SatyaDY24-Jan-06 2:50
SatyaDY24-Jan-06 2:50 
QuestionSetParent Pin
heajinkim23-Jan-06 23:55
heajinkim23-Jan-06 23:55 

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.