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

C / C++ / MFC

 
GeneralRe: Is it me or is it the compiler? Pin
Ravi Bhavnani4-Oct-03 6:13
professionalRavi Bhavnani4-Oct-03 6:13 
GeneralWeird VC++ behaviour Pin
DaFrawg3-Oct-03 9:45
DaFrawg3-Oct-03 9:45 
GeneralRe: Weird VC++ behaviour Pin
Michael P Butler3-Oct-03 10:00
Michael P Butler3-Oct-03 10:00 
GeneralRe: Weird VC++ behaviour Pin
DaFrawg10-Oct-03 8:42
DaFrawg10-Oct-03 8:42 
GeneralRe: Weird VC++ behaviour Pin
Michael P Butler10-Oct-03 9:03
Michael P Butler10-Oct-03 9:03 
GeneralRe: Weird VC++ behaviour Pin
DaFrawg27-Oct-03 2:05
DaFrawg27-Oct-03 2:05 
GeneralRe: Weird VC++ behaviour Pin
David Crow3-Oct-03 10:07
David Crow3-Oct-03 10:07 
GeneralRe: Weird VC++ behaviour Pin
DaFrawg4-Oct-03 2:23
DaFrawg4-Oct-03 2:23 
It still doesn't work. I now have the real code I use:
<br />
class Foo<br />
{<br />
public:<br />
	Foo();<br />
	virtual ~Foo();<br />
private:<br />
	CString m_String;<br />
public:<br />
	friend const Foo& operator= (const class Bar& BarInst);    //2x C2801<br />
};<br />
<br />
class Bar<br />
{<br />
public:<br />
	Bar();<br />
	virtual ~Bar();<br />
private:<br />
	CString m_String;<br />
};<br />
<br />
const Foo& operator=(const class Bar& BarInst)   //C2801<br />
{<br />
	m_String = Bar.m_String;   //C2673, C2227 and C2248. Ignore C2248<br />
	return (this*);   //C2673 and C2059<br />
}<br />


The compiler is getting berzerk. Not only a C2801, but also two C2673 (Global functions do not have 'this' pointers), C2227 (left of m_String must point to class/struct/union), C2248 (but that's not a real problem) and C2059 (Syntax error: ';').
GeneralRe: Weird VC++ behaviour Pin
David Crow6-Oct-03 2:59
David Crow6-Oct-03 2:59 
GeneralRe: Weird VC++ behaviour Pin
Mike Dimmick3-Oct-03 23:52
Mike Dimmick3-Oct-03 23:52 
GeneralRe: Weird VC++ behaviour Pin
DaFrawg27-Oct-03 2:00
DaFrawg27-Oct-03 2:00 
QuestionSDK creation (export of variables)? Pin
sjcomp3-Oct-03 9:25
sjcomp3-Oct-03 9:25 
AnswerRe: SDK creation (export of variables)? Pin
Peter Weyzen3-Oct-03 9:34
Peter Weyzen3-Oct-03 9:34 
GeneralRe: SDK creation (export of variables)? Pin
sjcomp3-Oct-03 9:45
sjcomp3-Oct-03 9:45 
GeneralRe: SDK creation (export of variables)? Pin
Peter Weyzen3-Oct-03 9:55
Peter Weyzen3-Oct-03 9:55 
GeneralRe: SDK creation (export of variables)? Pin
sjcomp3-Oct-03 10:06
sjcomp3-Oct-03 10:06 
GeneralRe: SDK creation (export of variables)? Pin
Peter Weyzen3-Oct-03 10:27
Peter Weyzen3-Oct-03 10:27 
GeneralRe: SDK creation (export of variables)? Pin
sjcomp3-Oct-03 10:41
sjcomp3-Oct-03 10:41 
GeneralRe: SDK creation (export of variables)? Pin
Peter Weyzen3-Oct-03 11:24
Peter Weyzen3-Oct-03 11:24 
GeneralRe: SDK creation (export of variables)? Pin
sjcomp3-Oct-03 11:46
sjcomp3-Oct-03 11:46 
GeneralRe: SDK creation (export of variables)? Pin
Peter Weyzen3-Oct-03 12:10
Peter Weyzen3-Oct-03 12:10 
AnswerRe: SDK creation (export of variables)? Pin
Gopalakrishna Palem3-Oct-03 19:18
Gopalakrishna Palem3-Oct-03 19:18 
GeneralRe: SDK creation (export of variables)? Pin
sjcomp4-Oct-03 7:01
sjcomp4-Oct-03 7:01 
GeneralRe: SDK creation (export of variables)? Pin
Gopalakrishna Palem4-Oct-03 14:39
Gopalakrishna Palem4-Oct-03 14:39 
AnswerRe: SDK creation (export of variables)? Pin
sjcomp6-Oct-03 4:19
sjcomp6-Oct-03 4: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.