Click here to Skip to main content
15,914,071 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: convert a dialog base app to a service Pin
David Crow23-Sep-08 3:43
David Crow23-Sep-08 3:43 
AnswerRe: convert a dialog base app to a service Pin
SandipG 22-Sep-08 21:42
SandipG 22-Sep-08 21:42 
GeneralRe: convert a dialog base app to a service Pin
MsmVc22-Sep-08 21:47
MsmVc22-Sep-08 21:47 
Questionstrange assmebly code for a method call Pin
George_George22-Sep-08 21:12
George_George22-Sep-08 21:12 
QuestionWriteFIleEX I/O completion rotine not being executed Pin
ForNow22-Sep-08 20:48
ForNow22-Sep-08 20:48 
AnswerRe: WriteFIleEX I/O completion rotine not being executed Pin
ForNow24-Sep-08 16:11
ForNow24-Sep-08 16:11 
Questiondiamond problem and virtual inheritance Pin
George_George22-Sep-08 19:37
George_George22-Sep-08 19:37 
AnswerRe: diamond problem and virtual inheritance Pin
tony_Udz22-Sep-08 20:07
tony_Udz22-Sep-08 20:07 
Hi,

Try the following code it might help you:

==========================================================================
#include "iostream.h"
#include "stdio.h"

class A
{
public:
int m_nAInt;
A(int n = 1):m_nAInt(n)
{
cout << "Class A Constructor called" << endl;
}

Display()
{
cout << "A::Display()" << endl;
}
};

class B: public virtual A
{
public:
B()
{
cout << "Class B Constructor called" << endl;
}

};

class C: public virtual A
{
public:
C()
{
cout << "Class C Constructor called" << endl;
}

};

class D: public B, C
{
public:
D()
{
cout << "Class D Constructor called" << endl;
}

};

int main(int argc, char* argv[])
{
D dObj;
dObj.Display();
return 0;
}
==========================================================================
GeneralRe: diamond problem and virtual inheritance Pin
George_George22-Sep-08 20:11
George_George22-Sep-08 20:11 
GeneralRe: diamond problem and virtual inheritance Pin
SandipG 22-Sep-08 20:30
SandipG 22-Sep-08 20:30 
GeneralRe: diamond problem and virtual inheritance Pin
George_George22-Sep-08 20:36
George_George22-Sep-08 20:36 
GeneralRe: diamond problem and virtual inheritance Pin
SandipG 22-Sep-08 20:41
SandipG 22-Sep-08 20:41 
GeneralRe: diamond problem and virtual inheritance Pin
George_George22-Sep-08 20:49
George_George22-Sep-08 20:49 
GeneralRe: diamond problem and virtual inheritance Pin
SandipG 22-Sep-08 21:07
SandipG 22-Sep-08 21:07 
GeneralRe: diamond problem and virtual inheritance Pin
George_George22-Sep-08 21:26
George_George22-Sep-08 21:26 
GeneralRe: diamond problem and virtual inheritance Pin
SandipG 22-Sep-08 21:30
SandipG 22-Sep-08 21:30 
GeneralRe: diamond problem and virtual inheritance Pin
George_George22-Sep-08 21:34
George_George22-Sep-08 21:34 
GeneralRe: diamond problem and virtual inheritance Pin
SandipG 22-Sep-08 21:37
SandipG 22-Sep-08 21:37 
GeneralRe: diamond problem and virtual inheritance Pin
George_George22-Sep-08 21:39
George_George22-Sep-08 21:39 
QuestionRe: diamond problem and virtual inheritance Pin
laksh220422-Sep-08 23:03
laksh220422-Sep-08 23:03 
QuestionIs there any memory leak in this code? Pin
SRKSHOME22-Sep-08 19:33
SRKSHOME22-Sep-08 19:33 
AnswerRe: Is there any memory leak in this code? Pin
User 21559722-Sep-08 19:53
User 21559722-Sep-08 19:53 
GeneralRe: Is there any memory leak in this code? Pin
SRKSHOME22-Sep-08 20:49
SRKSHOME22-Sep-08 20:49 
GeneralRe: Is there any memory leak in this code? Pin
User 21559722-Sep-08 21:46
User 21559722-Sep-08 21:46 
AnswerRe: Is there any memory leak in this code? Pin
Sarath C22-Sep-08 20:46
Sarath C22-Sep-08 20:46 

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.