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

C / C++ / MFC

 
GeneralRe: inp() and outp() won't work on NT ?!!! Pin
Ravi Bhavnani25-Dec-01 10:51
professionalRavi Bhavnani25-Dec-01 10:51 
GeneralRe: inp() and outp() won't work on NT ?!!! Pin
Hadi Rezaee26-Dec-01 9:20
Hadi Rezaee26-Dec-01 9:20 
GeneralRe: inp() and outp() won't work on NT ?!!! Pin
Erik Funkenbusch25-Dec-01 21:04
Erik Funkenbusch25-Dec-01 21:04 
GeneralDAO : the memory size increase Pin
Wizard_0125-Dec-01 5:44
Wizard_0125-Dec-01 5:44 
GeneralClass problem ! Pin
Hadi Rezaee25-Dec-01 5:36
Hadi Rezaee25-Dec-01 5:36 
GeneralRe: Class problem ! Pin
Ravi Bhavnani25-Dec-01 6:09
professionalRavi Bhavnani25-Dec-01 6:09 
GeneralRe: Class problem ! Pin
Hadi Rezaee25-Dec-01 10:27
Hadi Rezaee25-Dec-01 10:27 
GeneralRe: Class problem ! Pin
Ravi Bhavnani25-Dec-01 10:47
professionalRavi Bhavnani25-Dec-01 10:47 
A friend method (i.e. function) can be shared by specific classes (i.e. friends of the class). You can also declare friend members, and can even make an entire class a friend of other classes. See http://www.cee.hw.ac.uk/~rjp/Coursewww/CPPwww/friend.html for an explanation of C++ friendship.

Using a virtual destructor in class CMyClass ensures that it (the destructor) will be called when an instance of a derived object (eg: CMyDerivedClass : CMyClass) is destructed. Virtual destructors are executed in reverse order - i.e. the derived class destructor is called first, followed by the base class destructor. If you don't use a virtual destructor, destruction will stop in the derived class.

Imho, you should always declare destructors virtual, and design your classes such that anything constructed by a base class is destructed by that base class.

/ravi

"There is always one more bug..."
http://www.ravib.com
ravib@ravib.com
GeneralCFtpConnection... Pin
25-Dec-01 4:36
suss25-Dec-01 4:36 
GeneralXP AutoPlay - how to turn it off Pin
567890123425-Dec-01 4:31
567890123425-Dec-01 4:31 
GeneralPlease, ActiveX help ! Pin
25-Dec-01 3:47
suss25-Dec-01 3:47 
GeneralStuid Question Pin
The_Server24-Dec-01 21:58
The_Server24-Dec-01 21:58 
GeneralRe: Stuid Question Pin
l a u r e n25-Dec-01 1:33
l a u r e n25-Dec-01 1:33 
GeneralRe: Stuid Question Pin
The_Server25-Dec-01 23:03
The_Server25-Dec-01 23:03 
GeneralRe: Stuid Question Pin
Tim Smith25-Dec-01 2:32
Tim Smith25-Dec-01 2:32 
GeneralRe: Stuid Question Pin
The_Server25-Dec-01 23:07
The_Server25-Dec-01 23:07 
GeneralRe: Stuid Question Pin
The_Server25-Dec-01 23:17
The_Server25-Dec-01 23:17 
GeneralRe: Stuid Question Pin
Fazlul Kabir25-Dec-01 23:26
Fazlul Kabir25-Dec-01 23:26 
GeneralRe: Stuid Question Pin
Ravi Bhavnani25-Dec-01 6:13
professionalRavi Bhavnani25-Dec-01 6:13 
GeneralUsing typedef with classes Pin
24-Dec-01 16:20
suss24-Dec-01 16:20 
GeneralRe: Using typedef with classes -- I got it !! Pin
24-Dec-01 18:57
suss24-Dec-01 18:57 
GeneralRe: Using typedef with classes -- I got it !! Pin
Michael Dunn24-Dec-01 20:36
sitebuilderMichael Dunn24-Dec-01 20:36 
GeneralRe: Using typedef with classes -- I got it !! Pin
25-Dec-01 3:45
suss25-Dec-01 3:45 
QuestionHow to use VBScript and ASP in an application? Pin
Fred Ackers24-Dec-01 12:46
Fred Ackers24-Dec-01 12:46 
Answerwww.octogroup.net Pin
Uwe Keim24-Dec-01 12:54
sitebuilderUwe Keim24-Dec-01 12:54 

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.