Click here to Skip to main content
15,899,018 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Question about CEdit and CSpinButtonCtrl Pin
Uwe Keim29-Dec-04 18:58
sitebuilderUwe Keim29-Dec-04 18:58 
GeneralMFC help for a beginner Pin
Member 153369527-Nov-04 15:45
Member 153369527-Nov-04 15:45 
GeneralRe: MFC help for a beginner Pin
John R. Shaw27-Nov-04 18:22
John R. Shaw27-Nov-04 18:22 
GeneralRe: MFC help for a beginner Pin
rasha200327-Nov-04 21:41
rasha200327-Nov-04 21:41 
GeneralRe: MFC help for a beginner Pin
Member 153369528-Nov-04 4:08
Member 153369528-Nov-04 4:08 
GeneralRe: MFC help for a beginner Pin
bitpusher28-Nov-04 7:46
bitpusher28-Nov-04 7:46 
GeneralProblem with derivation Pin
Cramp27-Nov-04 15:05
Cramp27-Nov-04 15:05 
GeneralRe: Problem with derivation Pin
John R. Shaw27-Nov-04 18:09
John R. Shaw27-Nov-04 18:09 
Before trying to output data related to a Graduate you need to first try to convert the base student pointer (in list) to a Graduate pointer. You do that by trying to cast it using dynamic_cast, if it fails it is not a Graduate.

// output data common to all students
...
// try to cast student pointer to Graduate pointer
Graduate* pG = dynamic_cast<graduate*>(pStudent);
if( pG ) // if Graduate
{
// output data of graduate students
cout<<pg->show_thesis_topic();
}
// finish up
...

I beleive that is what you are looking for.

P.S. You did not need to post evey thing, only enough to show the problem.
(Pesonaly I ignored the rest).


INTP
"The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes."
Andrew W. Troelsen
Generalhooking Pin
gamitech27-Nov-04 11:15
gamitech27-Nov-04 11:15 
GeneralRe: hooking Pin
John R. Shaw27-Nov-04 17:26
John R. Shaw27-Nov-04 17:26 
GeneralRe: hooking Pin
Roger Allen29-Nov-04 2:34
Roger Allen29-Nov-04 2:34 
QuestionEz ? Pin
BaldwinMartin27-Nov-04 11:07
BaldwinMartin27-Nov-04 11:07 
AnswerRe: Ez ? Pin
John R. Shaw27-Nov-04 17:04
John R. Shaw27-Nov-04 17:04 
GeneralWinsock Problem/Question Pin
pshopaddict27-Nov-04 8:18
susspshopaddict27-Nov-04 8:18 
GeneralRe: Winsock Problem/Question Pin
John R. Shaw27-Nov-04 18:30
John R. Shaw27-Nov-04 18:30 
GeneralRe: Winsock Problem/Question Pin
pshopaddict27-Nov-04 20:10
susspshopaddict27-Nov-04 20:10 
GeneralRe: Winsock Problem/Question Pin
Anders Molin28-Nov-04 6:22
professionalAnders Molin28-Nov-04 6:22 
GeneralRe: Winsock Problem/Question Pin
John R. Shaw28-Nov-04 8:34
John R. Shaw28-Nov-04 8:34 
GeneralRe: Winsock Problem/Question Pin
pshopaddict29-Nov-04 5:21
susspshopaddict29-Nov-04 5:21 
Questionhow to run .exe with .dll Pin
Member 154670927-Nov-04 6:58
Member 154670927-Nov-04 6:58 
AnswerRe: how to run .exe with .dll Pin
gamitech27-Nov-04 11:02
gamitech27-Nov-04 11:02 
QuestionMDI VC++, How to pass parameters to view? Pin
wwwrabbit127-Nov-04 6:08
susswwwrabbit127-Nov-04 6:08 
AnswerRe: MDI VC++, How to pass parameters to view? Pin
John R. Shaw27-Nov-04 6:55
John R. Shaw27-Nov-04 6:55 
GeneralRe: MDI VC++, How to pass parameters to view? Pin
david_gilmour27-Nov-04 13:05
david_gilmour27-Nov-04 13:05 
GeneralRe: MDI VC++, How to pass parameters to view? Pin
John R. Shaw27-Nov-04 16:53
John R. Shaw27-Nov-04 16:53 

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.