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

C / C++ / MFC

 
QuestionRe: Integrate CView desrived class into a dialog box Pin
David Crow27-Oct-09 8:49
David Crow27-Oct-09 8:49 
QuestionHow to use IcmpCreateFile(); Pin
Manmohan2926-Oct-09 10:08
Manmohan2926-Oct-09 10:08 
QuestionRe: How to use IcmpCreateFile(); Pin
David Crow26-Oct-09 10:31
David Crow26-Oct-09 10:31 
AnswerRe: How to use IcmpCreateFile(); Pin
Manmohan2926-Oct-09 17:29
Manmohan2926-Oct-09 17:29 
QuestionRe: How to use IcmpCreateFile(); Pin
David Crow27-Oct-09 3:02
David Crow27-Oct-09 3:02 
AnswerRe: How to use IcmpCreateFile(); Pin
Randor 26-Oct-09 10:48
professional Randor 26-Oct-09 10:48 
GeneralRe: How to use IcmpCreateFile(); Pin
Manmohan2926-Oct-09 17:08
Manmohan2926-Oct-09 17:08 
Questioninheritance Pin
khomeyni26-Oct-09 9:40
khomeyni26-Oct-09 9:40 
in the name of god
hello anyone who is reading
i have a problem please help me:
in the code below is there any way which the class DerivedContainer in every where treat with DrivedMember as m_instance without static_cast?
as i have no well access to net if it is possible please send me the answer to sajadsadeghy@gmail.com or if not also thanks.



#include "stdafx.h"

class BaseMember
{
public:
int testBase;
BaseMember()
{

}


};
class DerivedMemer:public BaseMember
{

public:
DerivedMemer()
{

}
void SomeFunction()
{

}
int testDerived;


};

class BaseContainer
{
public:
BaseMember* m_instance;
BaseContainer()
{
m_instance=new BaseMember();
}

};
class DerivedContainer:public BaseContainer
{
public:
DerivedContainer()
{
m_instance=new DerivedMemer();
}
void TestFunction()
{
DerivedMemer* pIs=static_cast(this->m_instance);
pIs->testDerived=100;

}
};

int _tmain(int argc, _TCHAR* argv[])
{
DerivedContainer der;
der.TestFunction();
return 0;
}



thanks in advance .
valhamdolelah
AnswerRe: inheritance Pin
David Crow26-Oct-09 9:54
David Crow26-Oct-09 9:54 
GeneralRe: inheritance Pin
khomeyni27-Oct-09 6:19
khomeyni27-Oct-09 6:19 
QuestionRe: inheritance Pin
David Crow27-Oct-09 6:30
David Crow27-Oct-09 6:30 
AnswerRe: inheritance Pin
khomeyni27-Oct-09 6:56
khomeyni27-Oct-09 6:56 
GeneralRe: inheritance Pin
David Crow27-Oct-09 7:36
David Crow27-Oct-09 7:36 
GeneralRe: inheritance Pin
khomeyni28-Oct-09 20:54
khomeyni28-Oct-09 20:54 
QuestionThread buttons Pin
Nikz226-Oct-09 6:37
Nikz226-Oct-09 6:37 
QuestionRe: Thread buttons Pin
David Crow26-Oct-09 6:45
David Crow26-Oct-09 6:45 
AnswerRe: Thread buttons Pin
Nikz226-Oct-09 7:26
Nikz226-Oct-09 7:26 
Questionhow to convert tiff to pdf it's urgent Pin
eswar pothula26-Oct-09 5:23
eswar pothula26-Oct-09 5:23 
QuestionRe: how to convert tiff to pdf it's urgent Pin
CPallini26-Oct-09 5:41
mveCPallini26-Oct-09 5:41 
AnswerRe: how to convert tiff to pdf it's urgent Pin
David Crow26-Oct-09 6:04
David Crow26-Oct-09 6:04 
AnswerRe: how to convert tiff to pdf it's urgent Pin
Chris Losinger26-Oct-09 11:10
professionalChris Losinger26-Oct-09 11:10 
AnswerRe: how to convert tiff to pdf it's urgent Pin
Hariharasudhan R26-Oct-09 16:10
Hariharasudhan R26-Oct-09 16:10 
QuestionUnicode problem Pin
m_mun26-Oct-09 4:12
m_mun26-Oct-09 4:12 
AnswerRe: Unicode problem Pin
Hristo-Bojilov26-Oct-09 4:25
Hristo-Bojilov26-Oct-09 4:25 
GeneralRe: Unicode problem Pin
Nemanja Trifunovic26-Oct-09 4:34
Nemanja Trifunovic26-Oct-09 4:34 

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.