Click here to Skip to main content
15,911,315 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: making file path generic Pin
ThatsAlok25-May-08 18:56
ThatsAlok25-May-08 18:56 
QuestionWin32 Resources - Data size Pin
Heinz_25-May-08 15:46
Heinz_25-May-08 15:46 
AnswerRe: Win32 Resources - Data size Pin
Ernest Laurentin25-May-08 16:09
Ernest Laurentin25-May-08 16:09 
AnswerRe: Win32 Resources - Data size Pin
ThatsAlok25-May-08 19:01
ThatsAlok25-May-08 19:01 
QuestionHelp with multiple client views with scrolling [modified] Pin
Kwanalouie25-May-08 12:31
Kwanalouie25-May-08 12:31 
QuestionC++ Daimond Problem Pin
Zeeshan Riaz25-May-08 10:53
Zeeshan Riaz25-May-08 10:53 
AnswerRe: C++ Daimond Problem Pin
Nelek25-May-08 11:11
protectorNelek25-May-08 11:11 
AnswerRe: C++ Daimond Problem Pin
Rinu_Raj25-May-08 15:57
Rinu_Raj25-May-08 15:57 
Hope you are aware of run time polymorhism.
Keep the same name function/method as virtual function in the base class. For the derived class object pointer allocate the corresponding base class (whose function needs to be invoked) then call the function resulting the corresponding base class get invoked. See below to make things clear

class A
{
public:
virtual void show(){cout<<"Class A invoked"};
}
class B
{
public:
virtual void show(){cout<<"Class B invoked"};
}
class C: public A, public B
{
}

main()
{
C* ptr = new A;
ptr->show(); // "Class A invoked" will be printed
C* ptr1 = new B;
ptr1->show(); // "Class B invoked" will be printed
}

AnswerRe: C++ Daimond Problem Pin
Jijo.Raj25-May-08 18:40
Jijo.Raj25-May-08 18:40 
AnswerRe: C++ Daimond Problem Pin
SandipG 25-May-08 19:54
SandipG 25-May-08 19:54 
AnswerRe: C++ Daimond Problem Pin
ThatsAlok25-May-08 22:50
ThatsAlok25-May-08 22:50 
Questionmoving from on dialog box to the other Pin
lahom25-May-08 9:40
lahom25-May-08 9:40 
AnswerRe: moving from on dialog box to the other Pin
Nelek25-May-08 11:07
protectorNelek25-May-08 11:07 
GeneralRe: moving from on dialog box to the other Pin
lahom25-May-08 11:27
lahom25-May-08 11:27 
GeneralRe: moving from on dialog box to the other Pin
Nelek25-May-08 11:40
protectorNelek25-May-08 11:40 
GeneralRe: moving from on dialog box to the other Pin
lahom25-May-08 11:52
lahom25-May-08 11:52 
GeneralRe: moving from on dialog box to the other Pin
Nelek25-May-08 12:28
protectorNelek25-May-08 12:28 
QuestionSOLVED CDatabase connection fails with different directory path. [modified] Pin
Vaclav_25-May-08 4:49
Vaclav_25-May-08 4:49 
QuestionRe: CDatabase connection fails with different directory path. Pin
bob1697225-May-08 6:35
bob1697225-May-08 6:35 
AnswerRe: CDatabase connection fails with different directory path. Pin
Vaclav_25-May-08 6:43
Vaclav_25-May-08 6:43 
QuestionRe: CDatabase connection fails with different directory path. Pin
bob1697225-May-08 9:35
bob1697225-May-08 9:35 
AnswerRe: CDatabase connection fails with different directory path. Pin
Vaclav_25-May-08 11:13
Vaclav_25-May-08 11:13 
GeneralRe: CDatabase connection fails with different directory path. Pin
bob1697225-May-08 15:30
bob1697225-May-08 15:30 
GeneralRe: CDatabase connection fails with different directory path. Pin
Vaclav_25-May-08 15:43
Vaclav_25-May-08 15:43 
GeneralRe: CDatabase connection fails with different directory path. Pin
bob1697225-May-08 15:37
bob1697225-May-08 15:37 

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.