Click here to Skip to main content
15,896,349 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Retreive Hard Disk Interface Type Pin
Randor 20-Aug-09 22:32
professional Randor 20-Aug-09 22:32 
QuestionADO Connection String. Pin
forexsurfr20-Aug-09 17:11
forexsurfr20-Aug-09 17:11 
AnswerRe: ADO Connection String. Pin
Rane20-Aug-09 18:12
Rane20-Aug-09 18:12 
AnswerRe: ADO Connection String. Pin
forexsurfr20-Aug-09 18:39
forexsurfr20-Aug-09 18:39 
GeneralRe: ADO Connection String. Pin
Rane21-Aug-09 0:55
Rane21-Aug-09 0:55 
QuestionHow can i do a unique reference to a function name that appear in two classes ? Pin
SNArruda20-Aug-09 13:40
SNArruda20-Aug-09 13:40 
AnswerRe: How can i do a unique reference to a function name that appear in two classes ? Pin
Chuck O'Toole20-Aug-09 15:13
Chuck O'Toole20-Aug-09 15:13 
GeneralRe: How can i do a unique reference to a function name that appear in two classes ? Pin
SNArruda20-Aug-09 16:49
SNArruda20-Aug-09 16:49 
Humm

If i understood the code will be like this

class STSource
{
public:
virtual void DoSomething()=0; //pure virtual Function Definition
};

class STCobol:public STSource
{
public:
void DoSomething()
{
cout<<"Hi...";
}
};

class STHtml:public STSource
{
public:
void DoSomething()
{
cout<<"Bye...";
}
};

class AnyClass1:
{
STSource* pArray[2];
STCobol oCobol;
STHtml oHtml;

pArray[0]=&oCobol;
pArray[1]=&oHtml;

if cobol
pAarray[0]->DoSomething();
else
if html
pArray[1]->DoSomething();
}

class AnyClass2:
{
STSource* pSource;

if cobol {
STCobol oCobol;
pSource=&oCobol;
}
else
if html {
STHtml oHtml;
pSource=&oHtml;
}
}
pLanguage->DoSomething();


One more question: When i instanciated a STCobol or STHtml, STSource wiil be instanciated automactly

are the above things correct or am i keeping crazy ?
GeneralRe: How can i do a unique reference to a function name that appear in two classes ? Pin
KarstenK20-Aug-09 21:33
mveKarstenK20-Aug-09 21:33 
GeneralRe: How can i do a unique reference to a function name that appear in two classes ? Pin
Stuart Dootson20-Aug-09 23:41
professionalStuart Dootson20-Aug-09 23:41 
QuestionSandCastle Help Builder with C++ Dynamic DLL (MFC) Pin
Member 437978320-Aug-09 11:22
Member 437978320-Aug-09 11:22 
AnswerRe: SandCastle Help Builder with C++ Dynamic DLL (MFC) Pin
Joe Woodbury20-Aug-09 17:43
professionalJoe Woodbury20-Aug-09 17:43 
GeneralRe: SandCastle Help Builder with C++ Dynamic DLL (MFC) Pin
Member 437978321-Aug-09 0:50
Member 437978321-Aug-09 0:50 
QuestionDefault type Pin
thelonesquirrely20-Aug-09 7:59
thelonesquirrely20-Aug-09 7:59 
AnswerRe: Default type Pin
Graham Shanks20-Aug-09 8:11
Graham Shanks20-Aug-09 8:11 
AnswerRe: Default type Pin
Maximilien20-Aug-09 8:19
Maximilien20-Aug-09 8:19 
GeneralRe: Default type Pin
thelonesquirrely20-Aug-09 8:22
thelonesquirrely20-Aug-09 8:22 
GeneralRe: Default type Pin
Maximilien20-Aug-09 9:08
Maximilien20-Aug-09 9:08 
QuestionDoxygen help Pin
Pabolo20-Aug-09 7:35
Pabolo20-Aug-09 7:35 
QuestionDebugging Multiple Threaded App - Throwing Unhandled Exeception Pin
CodeMacDaddy20-Aug-09 4:44
CodeMacDaddy20-Aug-09 4:44 
AnswerRe: Debugging Multiple Threaded App - Throwing Unhandled Exeception Pin
Roger Stoltz20-Aug-09 6:01
Roger Stoltz20-Aug-09 6:01 
GeneralRe: Debugging Multiple Threaded App - Throwing Unhandled Exeception Pin
CodeMacDaddy20-Aug-09 8:14
CodeMacDaddy20-Aug-09 8:14 
AnswerRe: Debugging Multiple Threaded App - Throwing Unhandled Exeception Pin
Roger Stoltz20-Aug-09 22:19
Roger Stoltz20-Aug-09 22:19 
GeneralRe: Debugging Multiple Threaded App - Throwing Unhandled Exeception Pin
CodeMacDaddy21-Aug-09 8:30
CodeMacDaddy21-Aug-09 8:30 
AnswerRe: Debugging Multiple Threaded App - Throwing Unhandled Exeception Pin
KarstenK20-Aug-09 21:38
mveKarstenK20-Aug-09 21:38 

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.