Click here to Skip to main content
15,883,889 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow to fill round rectangle with gradient color? Pin
Tarek Jabri26-Feb-06 7:07
Tarek Jabri26-Feb-06 7:07 
AnswerRe: how to fill round rectangle with gradient color? Pin
Stephen Hewitt26-Feb-06 11:16
Stephen Hewitt26-Feb-06 11:16 
QuestionHorizontal scroll and vertical scroll--difference ? Pin
BeakX26-Feb-06 5:49
BeakX26-Feb-06 5:49 
AnswerRe: Horizontal scroll and vertical scroll--difference ? Pin
EXTEIDE26-Feb-06 6:29
EXTEIDE26-Feb-06 6:29 
GeneralRe: Horizontal scroll and vertical scroll--difference ? Pin
BeakX26-Feb-06 14:43
BeakX26-Feb-06 14:43 
GeneralRe: Horizontal scroll and vertical scroll--difference ? Pin
EXTEIDE26-Feb-06 20:19
EXTEIDE26-Feb-06 20:19 
Questionerror C2801: 'operator =' must be a member Pin
Mahhouraaaaaa26-Feb-06 5:03
Mahhouraaaaaa26-Feb-06 5:03 
AnswerRe: error C2801: 'operator =' must be a member Pin
Lilith.C26-Feb-06 5:24
Lilith.C26-Feb-06 5:24 
>hello i want to make an overload of the assignement operator in C++ but it generated this
>error ... someone help please
>thank you!
>this is the code:
>friend CMot& operator = (const CMot); --> in CMot.h

>CMot& operator = (const CMot m) --> in CMot.cpp
>{
>return m;
>}

>C++ Beginner

It's been a while since I've dealt with this but my guess would be that "friend" indicates an external function or class. Since the only entitity you're dealing with is the object itself, both as object and returned value, you don't need the "friend" designation. It puts it outside the class.

Lilith


AnswerRe: error C2801: 'operator =' must be a member Pin
Stephen Hewitt26-Feb-06 11:20
Stephen Hewitt26-Feb-06 11:20 
GeneralRe: error C2801: 'operator =' must be a member Pin
PJ Arends26-Feb-06 12:15
professionalPJ Arends26-Feb-06 12:15 
GeneralRe: error C2801: 'operator =' must be a member Pin
Stephen Hewitt26-Feb-06 12:19
Stephen Hewitt26-Feb-06 12:19 
GeneralRe: error C2801: 'operator =' must be a member Pin
Ryan Binns26-Feb-06 17:16
Ryan Binns26-Feb-06 17:16 
GeneralRe: error C2801: 'operator =' must be a member Pin
Stephen Hewitt26-Feb-06 18:10
Stephen Hewitt26-Feb-06 18:10 
GeneralRe: error C2801: 'operator =' must be a member Pin
Ryan Binns26-Feb-06 19:41
Ryan Binns26-Feb-06 19:41 
GeneralRe: error C2801: 'operator =' must be a member Pin
Stephen Hewitt26-Feb-06 19:51
Stephen Hewitt26-Feb-06 19:51 
Jokesome games Pin
FARGORE26-Feb-06 3:04
FARGORE26-Feb-06 3:04 
QuestionHow does the using the address of operator work in Visual C++? Pin
Tom Moore26-Feb-06 2:08
Tom Moore26-Feb-06 2:08 
AnswerRe: How does the using the address of operator work in Visual C++? Pin
BadKarma26-Feb-06 3:15
BadKarma26-Feb-06 3:15 
GeneralRe: How does the using the address of operator work in Visual C++? Pin
Tom Moore26-Feb-06 3:31
Tom Moore26-Feb-06 3:31 
GeneralRe: How does the using the address of operator work in Visual C++? Pin
PJ Arends26-Feb-06 11:13
professionalPJ Arends26-Feb-06 11:13 
AnswerRe: How does the using the address of operator work in Visual C++? Pin
Tom Moore26-Feb-06 3:17
Tom Moore26-Feb-06 3:17 
GeneralRe: How does the using the address of operator work in Visual C++? Pin
Gary R. Wheeler26-Feb-06 5:22
Gary R. Wheeler26-Feb-06 5:22 
AnswerRe: How does the using the address of operator work in Visual C++? Pin
includeh1026-Feb-06 3:19
includeh1026-Feb-06 3:19 
GeneralRe: How does the using the address of operator work in Visual C++? Pin
Tom Moore26-Feb-06 3:34
Tom Moore26-Feb-06 3:34 
AnswerRe: How does the using the address of operator work in Visual C++? Pin
Hamid_RT26-Feb-06 3:48
Hamid_RT26-Feb-06 3:48 

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.