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

C / C++ / MFC

 
GeneralAs for message destination Pin
BryanBHU8-Jun-01 5:53
BryanBHU8-Jun-01 5:53 
GeneralHelp! Database Question Pin
Ryan Baillargeon7-Jun-01 6:50
Ryan Baillargeon7-Jun-01 6:50 
GeneralRe: Access Database? Pin
Masaaki Onishi7-Jun-01 7:30
Masaaki Onishi7-Jun-01 7:30 
GeneralGraying out effect Pin
Chris Campbell7-Jun-01 6:13
Chris Campbell7-Jun-01 6:13 
GeneralRe: Graying out effect Pin
Christian Graus7-Jun-01 12:57
protectorChristian Graus7-Jun-01 12:57 
GeneralRe: Graying out effect Pin
8-Jun-01 6:54
suss8-Jun-01 6:54 
GeneralCPoint error Pin
mr20037-Jun-01 6:06
mr20037-Jun-01 6:06 
GeneralRe: CPoint error Pin
Mukkie7-Jun-01 8:58
Mukkie7-Jun-01 8:58 
First, change Your coordinates function to create result first, then return it. As I suspect You have done this in code.

CPoint Coordinates(CPoint pStart, CPoint pEnd)
{
CPoint result;
result.x = pStart.x + pEnd.x;
result.y = pStart.y + pEnd.y;

return result;
}

Everything looks ok. But check, whether the method from within You are calling Coordinates function is const. This may be the source of the problem.
One more thing: I think that CPoint has already +CPoint operator defined:
void operator+=(POINT point);
CPoint operator+(POINT point) const;


GeneralRe: CPoint error Pin
Christian Graus7-Jun-01 13:00
protectorChristian Graus7-Jun-01 13:00 
GeneralCComboBox Drop-down Height Pin
Derek Lakin7-Jun-01 5:05
Derek Lakin7-Jun-01 5:05 
GeneralRe: CComboBox Drop-down Height Pin
Santiago Suárez7-Jun-01 5:58
Santiago Suárez7-Jun-01 5:58 
GeneralRe: CComboBox Drop-down Height Pin
Derek Lakin7-Jun-01 22:19
Derek Lakin7-Jun-01 22:19 
GeneralRe: CComboBox Drop-down Height Pin
Deepak Khajuria7-Jun-01 22:38
Deepak Khajuria7-Jun-01 22:38 
GeneralRe: CComboBox Drop-down Height Pin
Derek Lakin8-Jun-01 0:28
Derek Lakin8-Jun-01 0:28 
GeneralFilling of a rectangle with bitmap pattern Pin
7-Jun-01 4:50
suss7-Jun-01 4:50 
GeneralRe: Filling of a rectangle with bitmap pattern Pin
Christian Graus7-Jun-01 13:12
protectorChristian Graus7-Jun-01 13:12 
GeneralIndenting in Chris Maunders Grid Ctrl Pin
7-Jun-01 4:24
suss7-Jun-01 4:24 
GeneralRe: Indenting in Chris Maunders Grid Ctrl Pin
7-Jun-01 5:15
suss7-Jun-01 5:15 
GeneralAccessing Instance & Resource Handle from an Extention DLL Pin
D.D. de Kerf7-Jun-01 4:16
D.D. de Kerf7-Jun-01 4:16 
General_beginthread and MFC Pin
7-Jun-01 4:06
suss7-Jun-01 4:06 
GeneralRe: _beginthread and MFC Pin
Ulf Öhlén7-Jun-01 5:23
Ulf Öhlén7-Jun-01 5:23 
GeneralRe: _beginthread and MFC Pin
Li Lirong7-Jun-01 16:06
Li Lirong7-Jun-01 16:06 
GeneralRe: _beginthread and MFC Pin
D.D. de Kerf7-Jun-01 20:47
D.D. de Kerf7-Jun-01 20:47 
GeneralRe: _beginthread and MFC Pin
8-Jun-01 4:32
suss8-Jun-01 4:32 
GeneralRe: _beginthread and MFC Pin
D.D. de Kerf10-Jun-01 20:50
D.D. de Kerf10-Jun-01 20:50 

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.