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

Managed C++/CLI

 
QuestionHow does OS know that is has lost power and running from UPS? Pin
netlogging16-Oct-07 5:35
netlogging16-Oct-07 5:35 
AnswerRe: How does OS know that is has lost power and running from UPS? Pin
led mike16-Oct-07 5:49
led mike16-Oct-07 5:49 
GeneralRe: How does OS know that is has lost power and running from UPS? Pin
netlogging16-Oct-07 6:37
netlogging16-Oct-07 6:37 
GeneralRe: How does OS know that is has lost power and running from UPS? Pin
Giorgi Dalakishvili16-Oct-07 7:05
mentorGiorgi Dalakishvili16-Oct-07 7:05 
AnswerRe: How does OS know that is has lost power and running from UPS? Pin
Luc Pattyn16-Oct-07 6:13
sitebuilderLuc Pattyn16-Oct-07 6:13 
QuestionHow to customize the fxcop(analysis tool) Pin
bhaskarsri15-Oct-07 20:30
bhaskarsri15-Oct-07 20:30 
AnswerRe: How to customize the fxcop(analysis tool) Pin
led mike16-Oct-07 5:50
led mike16-Oct-07 5:50 
QuestionBase class pointer to derived class object??? Pin
Ash2015-Oct-07 20:18
Ash2015-Oct-07 20:18 
what is advantage of "Base class pointer to Derived Class object" ?

class Base
{
public:
Base(){ cout<<"Constructor: Base"<<endl;}
~base(){="" cout<<"destructor="" :="" base"<<endl;}
="" void="" funbase()
="" {
="" cout="" <<"base="" function="" invoked"<<endl;
="" }
};
class="" derived:="" public="" base
{
="" public:
="" derived(){="" cout<<"constructor:="" derived"<<endl;}
="" ~derived(){="" funderived()
="" <<"derived="" }
};


int="" _tmain(int="" argc,="" _tchar*="" argv[])
{
="" cout<<"ashish"<<"\n";

="" base="" *var="new" derived();
="" delete="" var;

}


even="" though="" "var"="" points="" to="" derived="" class="" object="" ,="" it="" cannot="" access="" member="" i.e="" funderived().="" var="" can="" only="" functions.

instead="" of="" why="" dont="" we="" use="" ,
=""
="" *check="new" base();
="" check-="">fun1();

I guess it is having same behaviour. Please let me know wht is advantage of using base class pointer to derived class object?

Thanks\
Ash.
AnswerRe: Base class pointer to derived class object??? Pin
Christian Graus15-Oct-07 23:12
protectorChristian Graus15-Oct-07 23:12 
Answerit's called polymorphism Pin
etkid8417-Oct-07 2:38
etkid8417-Oct-07 2:38 
QuestionStreamReader, StreamWriter and File Position? Pin
BuckBrown15-Oct-07 9:18
BuckBrown15-Oct-07 9:18 
QuestionRe: StreamReader, StreamWriter and File Position? Pin
Mark Salsbery15-Oct-07 9:44
Mark Salsbery15-Oct-07 9:44 
AnswerRe: StreamReader, StreamWriter and File Position? Pin
BuckBrown15-Oct-07 10:17
BuckBrown15-Oct-07 10:17 
GeneralRe: StreamReader, StreamWriter and File Position? [modified] Pin
Mark Salsbery15-Oct-07 11:02
Mark Salsbery15-Oct-07 11:02 
GeneralRe: StreamReader, StreamWriter and File Position? Pin
BuckBrown16-Oct-07 9:05
BuckBrown16-Oct-07 9:05 
GeneralRe: StreamReader, StreamWriter and File Position? Pin
Mark Salsbery16-Oct-07 9:26
Mark Salsbery16-Oct-07 9:26 
GeneralRe: StreamReader, StreamWriter and File Position? Pin
BuckBrown16-Oct-07 10:11
BuckBrown16-Oct-07 10:11 
GeneralRe: StreamReader, StreamWriter and File Position? Pin
Mark Salsbery16-Oct-07 10:29
Mark Salsbery16-Oct-07 10:29 
GeneralRe: StreamReader, StreamWriter and File Position? Pin
BuckBrown16-Oct-07 11:12
BuckBrown16-Oct-07 11:12 
GeneralRe: StreamReader, StreamWriter and File Position? Pin
Mark Salsbery16-Oct-07 11:27
Mark Salsbery16-Oct-07 11:27 
GeneralRe: StreamReader, StreamWriter and File Position? Pin
BuckBrown16-Oct-07 11:30
BuckBrown16-Oct-07 11:30 
GeneralRe: StreamReader, StreamWriter and File Position? Pin
Mark Salsbery16-Oct-07 11:51
Mark Salsbery16-Oct-07 11:51 
QuestionHow to get HWND from System::Windows::Forms::Panel^ panel [modified] Pin
Newbie0014-Oct-07 0:35
Newbie0014-Oct-07 0:35 
AnswerRe: How to get HWND from System::Windows::Forms::Panel^ panel Pin
Mark Salsbery14-Oct-07 5:53
Mark Salsbery14-Oct-07 5:53 
GeneralRe: How to get HWND from System::Windows::Forms::Panel^ panel Pin
Newbie0014-Oct-07 7:02
Newbie0014-Oct-07 7:02 

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.