Click here to Skip to main content
15,901,853 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: Class with CRect / CPoint Variable Pin
David Crow1-Apr-05 7:43
David Crow1-Apr-05 7:43 
Anonymous wrote:
pt = (3, 2);

Are you sure this is right? Set a breakpoint on this statement and notice that the x and y member variables are not what you think they should be. Use an explicit assignment, or use something like:

pt = (2 << 16) + 3;
Anonymous wrote:
CRect function{int x, int y){

Is this a member of the view class? In either case, the left curly brace does not match the right parenthesis.

Anonymous wrote:
temp = (CPoint(pt.x+x, pt.y+y), CSize(3,3));

This assignment also looks suspect. I would change it to this instead:

CRect temp(CPoint(pt.x+x, pt.y+y), CSize(3,3));



"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow


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 &lt;vld.h&gt; to my main.c Pin
Member 18455451-Apr-05 5:03
Member 18455451-Apr-05 5:03 
GeneralRe: Linking errors when I add #include &lt;vld.h&gt; to my main.c Pin
ThatsAlok1-Apr-05 18:12
ThatsAlok1-Apr-05 18:12 
Questionhow to display &quot;ohm sign&quot;? Pin
Member 9487801-Apr-05 4:58
Member 9487801-Apr-05 4:58 
AnswerRe: how to display &quot;ohm sign&quot;? Pin
David Crow1-Apr-05 5:32
David Crow1-Apr-05 5:32 
AnswerRe: how to display &quot;ohm sign&quot;? 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 &quot;ohm sign&quot;? 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 
GeneralRe: Kill a thread Pin
toxcct1-Apr-05 2:37
toxcct1-Apr-05 2:37 

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.