Click here to Skip to main content
16,006,709 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCreate popup menu, across desktop border (no repositioning)? Pin
Anonymous13-Sep-02 17:44
Anonymous13-Sep-02 17:44 
AnswerRe: Create popup menu, across desktop border (no repositioning)? Pin
Michael Dunn14-Sep-02 6:01
sitebuilderMichael Dunn14-Sep-02 6:01 
GeneralRe: Create popup menu, across desktop border (no repositioning)? Pin
Anonymous14-Sep-02 14:02
Anonymous14-Sep-02 14:02 
QuestionOwnerdraw with bold text? Pin
Anonymous13-Sep-02 17:00
Anonymous13-Sep-02 17:00 
AnswerRe: Ownerdraw with bold text? Pin
Daniel Ferguson13-Sep-02 17:31
Daniel Ferguson13-Sep-02 17:31 
GeneralRe: Ownerdraw with bold text? Pin
Anonymous13-Sep-02 17:39
Anonymous13-Sep-02 17:39 
GeneralRe: Ownerdraw with bold text? Pin
Daniel Ferguson13-Sep-02 19:13
Daniel Ferguson13-Sep-02 19:13 
GeneralPolymorphism & Overloaded Operators :: C++ Pin
valikac13-Sep-02 15:44
valikac13-Sep-02 15:44 
Hi.

I would like to know is it possible to apply polymorphism to overloaded operators? For examples, is it possible to rely on polymorphism via creating virtual overloaded operators and friend functions?

Consider the ostream and istream for instance. I would like to design a hierarchy such as this.

-----------------------------------------------------------------------
Base *pB;
Derived *pD = Derived();
pB = dynamic_cast<base *="" />(pD);

// I would like this line to call an ostream friend function in the *Derived* class.

cout << *pB;
----------------------------------------------------------------------


My code might be off. Nonetheless, the point I want to get at is applying polymorphism to overloaded functions and friend functions, especially iostream.

Thanks,
Kuphryn
GeneralRe: Polymorphism & Overloaded Operators :: C++ Pin
Paul M Watt13-Sep-02 21:13
mentorPaul M Watt13-Sep-02 21:13 
GeneralRe: Polymorphism & Overloaded Operators :: C++ Pin
valikac14-Sep-02 7:09
valikac14-Sep-02 7:09 
GeneralWanted: POP3 Proxy sample in C++ Pin
b_p_smith13-Sep-02 15:43
b_p_smith13-Sep-02 15:43 
GeneralRe: Wanted: POP3 Proxy sample in C++ Pin
Roger Wright14-Sep-02 4:12
professionalRoger Wright14-Sep-02 4:12 
GeneralRe: Wanted: POP3 Proxy sample in C++ Pin
b_p_smith14-Sep-02 4:17
b_p_smith14-Sep-02 4:17 
GeneralSDI dummy question Pin
RobJones13-Sep-02 15:37
RobJones13-Sep-02 15:37 
GeneralRe: SDI dummy question Pin
RobJones13-Sep-02 16:34
RobJones13-Sep-02 16:34 
GeneralWarning level four? Holy sh*... Pin
Paul Oss13-Sep-02 13:23
Paul Oss13-Sep-02 13:23 
GeneralRe: Warning level four? Holy sh*... Pin
Tim Smith13-Sep-02 14:38
Tim Smith13-Sep-02 14:38 
GeneralRe: Warning level four? Holy sh*... Pin
Simon.W13-Sep-02 15:09
Simon.W13-Sep-02 15:09 
GeneralRe: Warning level four? Holy sh*... Pin
Michael Dunn13-Sep-02 16:37
sitebuilderMichael Dunn13-Sep-02 16:37 
Generalpeculiar positioning of image control Pin
ns13-Sep-02 11:42
ns13-Sep-02 11:42 
QuestionMSDN Doc. bug or Control bug with ListView? Pin
Member 91813-Sep-02 11:24
Member 91813-Sep-02 11:24 
QuestionWhere is this ID coming from? Pin
ns13-Sep-02 11:02
ns13-Sep-02 11:02 
AnswerI got a compiler error doing this: Pin
ns13-Sep-02 11:07
ns13-Sep-02 11:07 
GeneralRe: I got a compiler error doing this: Pin
brianwelsch13-Sep-02 11:11
brianwelsch13-Sep-02 11:11 
GeneralRe: I got a compiler error doing this: Pin
Pavel Klocek13-Sep-02 11:27
Pavel Klocek13-Sep-02 11:27 

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.