Click here to Skip to main content
15,920,383 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
Questionaccess and vb6 Pin
RiNaZaiNoN23-Nov-05 15:35
RiNaZaiNoN23-Nov-05 15:35 
AnswerRe: access and vb6 Pin
toxcct23-Nov-05 21:57
toxcct23-Nov-05 21:57 
Questionaccess and vb6 Pin
RiNaZaiNoN23-Nov-05 15:34
RiNaZaiNoN23-Nov-05 15:34 
AnswerRe: access and vb6 Pin
toxcct23-Nov-05 21:53
toxcct23-Nov-05 21:53 
QuestionCalling dll functions in .net Pin
ramenk23-Nov-05 1:07
ramenk23-Nov-05 1:07 
QuestionStoring Objects Pin
RichardS22-Nov-05 23:31
RichardS22-Nov-05 23:31 
QuestionUse of virtual destructors? Pin
G Haranadh22-Nov-05 23:21
G Haranadh22-Nov-05 23:21 
AnswerRe: Use of virtual destructors? Pin
RichardS23-Nov-05 1:10
RichardS23-Nov-05 1:10 
Hi,

G Haranadh wrote:
Could any one please let me know what is the use of virtual destructors?


Virtual helps with derived classes. If you child class allocs memory and deallocs it in the destructor, then you will always want the child class' destructor to run. If the base class' destructor is not virtual then if the base class detructs it will not call the child class and memory will leak. When it is virtual it will call the child class before the base class.


G Haranadh wrote:
At what point of time we use these virtual destructors?

When Objects destruct

regards,
Rich





"Programming today is a race between software engineers striving to build bigger and
better idiot-proof programs, and the Universe trying to produce bigger and better idiots.
So far the Universe is winning." -- Rich Cook
QuestionHaving trouble with a namespace and class type collision in C++/C# project Pin
dxben22-Nov-05 18:06
dxben22-Nov-05 18:06 
AnswerRe: Having trouble with a namespace and class type collision in C++/C# project Pin
Sheng Jiang 蒋晟24-Nov-05 19:46
Sheng Jiang 蒋晟24-Nov-05 19:46 
GeneralRe: Having trouble with a namespace and class type collision in C++/C# project Pin
dxben5-Dec-05 17:05
dxben5-Dec-05 17:05 
GeneralRe: Having trouble with a namespace and class type collision in C++/C# project Pin
Sheng Jiang 蒋晟5-Dec-05 18:27
Sheng Jiang 蒋晟5-Dec-05 18:27 
GeneralRe: Having trouble with a namespace and class type collision in C++/C# project Pin
dxben6-Dec-05 0:25
dxben6-Dec-05 0:25 
QuestionPlot in C++ Pin
Mareo_42122-Nov-05 13:22
Mareo_42122-Nov-05 13:22 
AnswerRe: Plot in C++ Pin
Saksida Bojan22-Nov-05 19:54
Saksida Bojan22-Nov-05 19:54 
QuestionI need help 2 Pin
Harshees22-Nov-05 12:54
Harshees22-Nov-05 12:54 
AnswerRe: I need help 2 Pin
toxcct23-Nov-05 2:13
toxcct23-Nov-05 2:13 
AnswerRe: I need help 2 Pin
Saksida Bojan23-Nov-05 18:53
Saksida Bojan23-Nov-05 18:53 
QuestionI need help! Pin
Harshees22-Nov-05 12:52
Harshees22-Nov-05 12:52 
QuestionXmlValidatingReader problem with xs:date Pin
IsaacB22-Nov-05 10:28
IsaacB22-Nov-05 10:28 
QuestionEditor for collapsing '#ifdef' or '#if defined' in C/C++ files Pin
kristofvanderhaeghen21-Nov-05 21:44
kristofvanderhaeghen21-Nov-05 21:44 
QuestionHow to change CEdit's background color and text color? thanks. Pin
LeeeNN21-Nov-05 14:12
LeeeNN21-Nov-05 14:12 
QuestionFailed to retrieve SQL Server out param values using ADODB::_CommandPtr - Urgent Pin
shyjujohn21-Nov-05 1:00
shyjujohn21-Nov-05 1:00 
Questiondrawing in a console Pin
qwerty666@codeproject.com20-Nov-05 10:57
qwerty666@codeproject.com20-Nov-05 10:57 
AnswerRe: drawing in a console Pin
Curtis Schlak.20-Nov-05 15:45
Curtis Schlak.20-Nov-05 15:45 

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.