Click here to Skip to main content
15,914,608 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: C++ Help Pin
namaskaaram3-Apr-05 23:50
namaskaaram3-Apr-05 23:50 
GeneralRe: C++ Help Pin
FlyingTinman4-Apr-05 12:57
FlyingTinman4-Apr-05 12:57 
GeneralClass with CRect / CPoint Variable Pin
Anonymous1-Apr-05 5:13
Anonymous1-Apr-05 5:13 
GeneralRe: Class with CRect / CPoint Variable Pin
Anonymous1-Apr-05 5:24
Anonymous1-Apr-05 5:24 
GeneralRe: Class with CRect / CPoint Variable Pin
David Crow1-Apr-05 5:29
David Crow1-Apr-05 5:29 
GeneralRe: Class with CRect / CPoint Variable Pin
poiut1-Apr-05 6:03
poiut1-Apr-05 6:03 
GeneralRe: Class with CRect / CPoint Variable Pin
David Crow1-Apr-05 6:14
David Crow1-Apr-05 6:14 
GeneralRe: Class with CRect / CPoint Variable Pin
Anonymous1-Apr-05 6:35
Anonymous1-Apr-05 6:35 
Ooops disregard the debug error message. I breakpoint too early.

No cout I am drawing a graph and basically I have it

CPoint pt declare in the View header
int dummy declare in the header also

OnDraw(CDC* pDC){
CRect final;
int x =6, y = 7;
pt = (3, 2);
dummy = 9;

// At this point 3, 2 is still valid
final = function(x, y);
// pt, 3, 2 returns
// Draw final rectangle
}

CRect function{int x, int y){
// pt x = 0, y = 0;
// dummy = 7
CRect temp;
temp = (CPoint(pt.x+x, pt.y+y), CSize(3,3));
return temp;
}

Something like that. I don't understand why my function is having problem accessing pt value but if I declare it as int it would be fine Grrr. pt.x was orignally an int and it worked fine but when I changed it to CPoint pt.x it stopped working.Confused | :confused:
GeneralRe: Class with CRect / CPoint Variable Pin
David Crow1-Apr-05 7:43
David Crow1-Apr-05 7:43 
GeneralRe: Class with CRect / CPoint Variable Pin
poiut1-Apr-05 6:55
poiut1-Apr-05 6:55 
GeneralRe: Class with CRect / CPoint Variable Pin
poiut1-Apr-05 8:43
poiut1-Apr-05 8:43 
GeneralLinking errors when I add #include <vld.h> to my main.c Pin
Member 18455451-Apr-05 5:03
Member 18455451-Apr-05 5:03 
GeneralRe: Linking errors when I add #include <vld.h> to my main.c Pin
ThatsAlok1-Apr-05 18:12
ThatsAlok1-Apr-05 18:12 
Questionhow to display "ohm sign"? Pin
Member 9487801-Apr-05 4:58
Member 9487801-Apr-05 4:58 
AnswerRe: how to display "ohm sign"? Pin
David Crow1-Apr-05 5:32
David Crow1-Apr-05 5:32 
AnswerRe: how to display "ohm sign"? Pin
Alexander M.,1-Apr-05 10:01
Alexander M.,1-Apr-05 10:01 
GeneralRe: how to display "ohm sign"? Pin
Alexander M.,2-Apr-05 1:35
Alexander M.,2-Apr-05 1:35 
AnswerRe: how to display "ohm sign"? Pin
vishalmore1-Apr-05 20:09
vishalmore1-Apr-05 20:09 
GeneralProblem with CEdit Pin
Static(x)1-Apr-05 4:13
Static(x)1-Apr-05 4:13 
GeneralRe: Problem with CEdit Pin
toxcct1-Apr-05 4:27
toxcct1-Apr-05 4:27 
GeneralRe: Problem with CEdit Pin
ddmcr1-Apr-05 4:30
ddmcr1-Apr-05 4:30 
GeneralRe: Problem with CEdit Pin
Michael Dunn1-Apr-05 7:06
sitebuilderMichael Dunn1-Apr-05 7:06 
GeneralKill a thread Pin
bouli1-Apr-05 2:31
bouli1-Apr-05 2:31 
GeneralRe: Kill a thread Pin
Alexander M.,1-Apr-05 2:35
Alexander M.,1-Apr-05 2:35 
GeneralRe: Kill a thread Pin
bouli1-Apr-05 2:42
bouli1-Apr-05 2:42 

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.