Click here to Skip to main content
15,901,426 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Instant Thread End Pin
sudhir_Kumar23-Jul-08 20:14
sudhir_Kumar23-Jul-08 20:14 
GeneralRe: Instant Thread End Pin
john563223-Jul-08 20:19
john563223-Jul-08 20:19 
GeneralRe: Instant Thread End Pin
ThatsAlok23-Jul-08 20:42
ThatsAlok23-Jul-08 20:42 
AnswerRe: Instant Thread End Pin
sudhir_Kumar23-Jul-08 20:46
sudhir_Kumar23-Jul-08 20:46 
GeneralRe: Instant Thread End Pin
ThatsAlok24-Jul-08 0:26
ThatsAlok24-Jul-08 0:26 
QuestionFundamental question in C++ Pin
Yajnesh Narayan Behera23-Jul-08 19:19
Yajnesh Narayan Behera23-Jul-08 19:19 
AnswerRe: Fundamental question in C++ Pin
rp_suman23-Jul-08 19:29
rp_suman23-Jul-08 19:29 
GeneralRe: Fundamental question in C++ Pin
Yajnesh Narayan Behera23-Jul-08 19:49
Yajnesh Narayan Behera23-Jul-08 19:49 
You are correct. Let me give the snapshot.

class BaseClass
{
public:
virtual void Display();

};

void BaseClass:isplay()
{
printf("Hello BaseClass\n");
}


class DerivedClass : public BaseClass
{
private:
void Display();
};

void DerivedClass:isplay()
{
printf("Hello DerivedClass\n");
}

int main(int argc, char* argv[])
{
printf("Hello World!\n");
BaseClass* pBaseClass = NULL;

DerivedClass* pDerivedClass = new DerivedClass();
pBaseClass = pDerivedClass;
pBaseClass->Display();
delete pDerivedClass;
return 0;
}

In this case the method is private in the derived class, so if we can call this private method from another class then what is the meaning of encapsulation in C++?
GeneralRe: Fundamental question in C++ Pin
ThatsAlok23-Jul-08 20:37
ThatsAlok23-Jul-08 20:37 
QuestionHow can i run an exe application in Diagol Based Application ?? Pin
Shyam Kodase23-Jul-08 19:03
Shyam Kodase23-Jul-08 19:03 
AnswerRe: How can i run an exe application in Diagol Based Application ?? Pin
Cedric Moonen23-Jul-08 20:21
Cedric Moonen23-Jul-08 20:21 
AnswerRe: How can i run an exe application in Diagol Based Application ?? Pin
ThatsAlok23-Jul-08 20:47
ThatsAlok23-Jul-08 20:47 
GeneralRe: How can i run an exe application in Diagol Based Application ?? Pin
Shyam Kodase24-Jul-08 20:39
Shyam Kodase24-Jul-08 20:39 
GeneralRe: How can i run an exe application in Diagol Based Application ?? Pin
Shyam Kodase24-Jul-08 20:40
Shyam Kodase24-Jul-08 20:40 
QuestionHow can color a button? Pin
Le@rner23-Jul-08 18:47
Le@rner23-Jul-08 18:47 
AnswerRe: How can color a button? Pin
Naveen23-Jul-08 19:21
Naveen23-Jul-08 19:21 
Questionreading check box from mdb Pin
GPat2423-Jul-08 11:02
GPat2423-Jul-08 11:02 
AnswerRe: reading check box from mdb Pin
David Crow23-Jul-08 17:08
David Crow23-Jul-08 17:08 
GeneralRe: reading check box from mdb Pin
GPat2424-Jul-08 2:34
GPat2424-Jul-08 2:34 
GeneralRe: reading check box from mdb Pin
David Crow24-Jul-08 3:31
David Crow24-Jul-08 3:31 
QuestionHandling events for the controls on a Win32 dialog. Pin
Hari-Adarapu23-Jul-08 9:00
Hari-Adarapu23-Jul-08 9:00 
AnswerRe: Handling events for the controls on a Win32 dialog. Pin
JudyL_MD23-Jul-08 9:04
JudyL_MD23-Jul-08 9:04 
GeneralRe: Handling events for the controls on a Win32 dialog. Pin
Hari-Adarapu23-Jul-08 9:45
Hari-Adarapu23-Jul-08 9:45 
GeneralRe: Handling events for the controls on a Win32 dialog. Pin
JudyL_MD23-Jul-08 10:06
JudyL_MD23-Jul-08 10:06 
AnswerRe: Handling events for the controls on a Win32 dialog. Pin
Mark Salsbery23-Jul-08 9:57
Mark Salsbery23-Jul-08 9:57 

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.