Click here to Skip to main content
15,890,399 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Winsock Event Select Model Pin
Richard Andrew x647-Jul-14 6:46
professionalRichard Andrew x647-Jul-14 6:46 
GeneralRe: Winsock Event Select Model Pin
jeron17-Jul-14 7:31
jeron17-Jul-14 7:31 
GeneralRe: Winsock Event Select Model Pin
Richard Andrew x647-Jul-14 7:59
professionalRichard Andrew x647-Jul-14 7:59 
AnswerRe: Winsock Event Select Model Pin
Randor 7-Jul-14 7:25
professional Randor 7-Jul-14 7:25 
GeneralRe: Winsock Event Select Model Pin
Richard Andrew x647-Jul-14 7:31
professionalRichard Andrew x647-Jul-14 7:31 
GeneralRe: Winsock Event Select Model Pin
Randor 7-Jul-14 12:19
professional Randor 7-Jul-14 12:19 
GeneralRe: Winsock Event Select Model Pin
Richard Andrew x647-Jul-14 12:22
professionalRichard Andrew x647-Jul-14 12:22 
QuestionArithmetic Operator Overload in Pure Abstract Class Pin
CJ14-Jul-14 11:34
professionalCJ14-Jul-14 11:34 
This is a tough one, I want to overload the arithmetic operators in a pur virtual abstract class.Confused | :confused:

The pur abstract class defines the basic 'Interface' from there I have a base parent class that will be the default implementation and several parallel child classes.

e.g.
C++
virtual IClass operator+(IClass& RHS) = 0;

Then I can implement it in BaseClass.

Problem: Can not instantiate abstract class.

changing it to
C++
virtual IClass& operator+(IClass& RHS) = 0;
means that the statement is valid BUT it can't work (or can it?) this returns a reference to IClass which isn't what we want in addition, we want to return a value not a reference.

So how can I do this whithou getting in to memory leaks and such. For addition we want to be able to do result = a + b + c + d, etc.

This is pure old (not C++11) C++ I'm working in today.
CJ

AnswerRe: Arithmetic Operator Overload in Pure Abstract Class Pin
jschell7-Jul-14 10:10
jschell7-Jul-14 10:10 
AnswerRe: Arithmetic Operator Overload in Pure Abstract Class Pin
Stefan_Lang7-Jul-14 21:43
Stefan_Lang7-Jul-14 21:43 
QuestionRepaint control component question Pin
econy4-Jul-14 4:16
econy4-Jul-14 4:16 
AnswerRe: Repaint control component question Pin
Richard MacCutchan4-Jul-14 5:46
mveRichard MacCutchan4-Jul-14 5:46 
QuestionHow to trace a program? Pin
GwapoKho3-Jul-14 3:02
GwapoKho3-Jul-14 3:02 
AnswerRe: How to trace a program? Pin
jeron13-Jul-14 5:02
jeron13-Jul-14 5:02 
AnswerRe: How to trace a program? Pin
Stefan_Lang4-Jul-14 0:05
Stefan_Lang4-Jul-14 0:05 
QuestionTBLRD instruction PIC18 Pin
__John_3-Jul-14 1:20
__John_3-Jul-14 1:20 
AnswerRe: TBLRD instruction PIC18 Pin
CPallini3-Jul-14 2:51
mveCPallini3-Jul-14 2:51 
GeneralRe: TBLRD instruction PIC18 Pin
__John_3-Jul-14 4:04
__John_3-Jul-14 4:04 
GeneralRe: TBLRD instruction PIC18 Pin
CPallini3-Jul-14 4:33
mveCPallini3-Jul-14 4:33 
AnswerRe: TBLRD instruction PIC18 Pin
jeron13-Jul-14 4:14
jeron13-Jul-14 4:14 
QuestionLinked List With Two Three Tree Pin
Hamza Bin Amin30-Jun-14 11:06
Hamza Bin Amin30-Jun-14 11:06 
QuestionRe: Linked List With Two Three Tree Pin
David Crow2-Jul-14 3:47
David Crow2-Jul-14 3:47 
GeneralRe: Linked List With Two Three Tree Pin
CPallini2-Jul-14 22:58
mveCPallini2-Jul-14 22:58 
AnswerRe: Linked List With Two Three Tree Pin
Stefan_Lang3-Jul-14 23:56
Stefan_Lang3-Jul-14 23:56 
GeneralMessage Closed Pin
30-Jun-14 8:40
Member 1091480330-Jun-14 8:40 

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.