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

C / C++ / MFC

 
GeneralRe: Converting CString to int Pin
Le@rner20-Aug-09 19:37
Le@rner20-Aug-09 19:37 
QuestionRetreive Hard Disk Interface Type Pin
Abinash Mohanty20-Aug-09 18:39
Abinash Mohanty20-Aug-09 18:39 
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 
Hi everybody,

I have a class called STSource ("ST" is my system prefix) and it represent a program source. i have too, more two classes called STCobol and STHtml. STSource need to execute a function that separate informations using a very specific way that have a same name inside STCobol and STHtml. I don´t like to use conditions sintaxes to check file extension and to decide which object will be instanciated (For me oCobol ou oHtml). How can i instanciated a pointer or something to this.

I need

STSource oSource

if cobol
oLanguage = STCobol
else
if HTML
oLanguage = STHtml

oLanguage.DoSomething()

and not

STSource oSource

if cobol
STCobol oCobol
else
if HTML
STHtml oHtml

if cobol
oCobol.DoSomething()
else
if HTML
oHtml.DoSomething()


Thanks for read my questions

Sorry by poor english, i´m Brazilian
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 
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 

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.