Click here to Skip to main content
15,909,051 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: .txt-File Pin
Lucky20021-Dec-02 12:12
Lucky20021-Dec-02 12:12 
QuestionIs there a way to translate your C++ code to assembly code in VS? Pin
Redeemer-dk30-Nov-02 11:28
Redeemer-dk30-Nov-02 11:28 
AnswerRe: Is there a way to translate your C++ code to assembly code in VS? Pin
Christian Graus30-Nov-02 12:48
protectorChristian Graus30-Nov-02 12:48 
GeneralRe: Is there a way to translate your C++ code to assembly code in VS? Pin
Redeemer-dk30-Nov-02 14:43
Redeemer-dk30-Nov-02 14:43 
GeneralRe: Is there a way to translate your C++ code to assembly code in VS? Pin
Christian Graus30-Nov-02 15:36
protectorChristian Graus30-Nov-02 15:36 
AnswerRe: Is there a way to translate your C++ code to assembly code in VS? Pin
Anatari30-Nov-02 18:38
Anatari30-Nov-02 18:38 
GeneralGet statusbar text area as a CPoint Pin
RobJones30-Nov-02 8:02
RobJones30-Nov-02 8:02 
GeneralAsk about SetPixel, Lineto and Moveto Pin
ooosawaddee330-Nov-02 3:56
ooosawaddee330-Nov-02 3:56 
I write these below program to draw a rectangle which have black frame. In the rectangle have 4 red points and I draw the line between 2 point. So I get the result as this picture
http://www.geocities.com/ooosawaddee3/pic/PointPicture.jpg

In the picture the red point is very small and the line between point is not exactly straight. I want the larger red point and straight line. Do you know how to do that?

	pDC->SetMapMode(MM_TEXT);<br />
<br />
	// Paint white color as the background <br />
	pDC->FillSolidRect(origin.x, origin.y, 2000, 2000, RGB(255,255,255));<br />
	<br />
	int cx = 5;<br />
	int cy = 5;	<br />
	<br />
	CPen pen, pen2;<br />
	pen.CreatePen(PS_SOLID,2, RGB(0,0,0));<br />
<br />
	pDC->SelectObject(&pen);<br />
<br />
	pDC->Rectangle(cx,cy,(cx +256), (cy + 192));<br />
	pDC->SetPixel(45,10, RGB(255,0,0));<br />
	pDC->SetPixel(47,9, RGB(255,0,0));<br />
	pDC->SetPixel(79,45, RGB(255,0,0));<br />
	pDC->SetPixel(46,120, RGB(255,0,0));<br />
<br />
	pen2.CreatePen(PS_SOLID,1, RGB(0,0,255));<br />
<br />
	pDC->SelectObject(&pen2);<br />
	pDC->MoveTo(45,10);<br />
	pDC->LineTo(79,45);

GeneralRe: Ask about SetPixel, Lineto and Moveto Pin
Ravi Bhavnani30-Nov-02 8:51
professionalRavi Bhavnani30-Nov-02 8:51 
GeneralRe: Ask about SetPixel, Lineto and Moveto Pin
Christian Graus30-Nov-02 10:22
protectorChristian Graus30-Nov-02 10:22 
GeneralWM_KEYDOWN and editbox Pin
devvvy29-Nov-02 22:57
devvvy29-Nov-02 22:57 
GeneralRe: WM_KEYDOWN and editbox Pin
KingsGambit29-Nov-02 23:34
KingsGambit29-Nov-02 23:34 
Questionwhy cause exception?? Pin
ttzzgg_8071329-Nov-02 22:15
ttzzgg_8071329-Nov-02 22:15 
AnswerRe: why cause exception?? Pin
Gary R. Wheeler30-Nov-02 2:18
Gary R. Wheeler30-Nov-02 2:18 
Generalmemory check code. Pin
Zanphar29-Nov-02 22:08
Zanphar29-Nov-02 22:08 
GeneralRe: memory check code. Pin
Gero Gerber29-Nov-02 22:48
Gero Gerber29-Nov-02 22:48 
GeneralRe: memory check code. Pin
Zanphar29-Nov-02 22:53
Zanphar29-Nov-02 22:53 
GeneralRe: memory check code. Pin
Gero Gerber29-Nov-02 23:15
Gero Gerber29-Nov-02 23:15 
Generaluninstall and start menu Pin
devvvy29-Nov-02 18:16
devvvy29-Nov-02 18:16 
GeneralRe: uninstall and start menu Pin
Nish Nishant29-Nov-02 18:18
sitebuilderNish Nishant29-Nov-02 18:18 
GeneralRe: uninstall and start menu Pin
devvvy29-Nov-02 18:21
devvvy29-Nov-02 18:21 
GeneralRe: uninstall and start menu Pin
Nish Nishant29-Nov-02 18:46
sitebuilderNish Nishant29-Nov-02 18:46 
GeneralRe: uninstall and start menu Pin
devvvy29-Nov-02 21:49
devvvy29-Nov-02 21:49 
GeneralIf then statement help Pin
Mustanggt29-Nov-02 18:04
Mustanggt29-Nov-02 18:04 
GeneralRe: If then statement help Pin
Nish Nishant29-Nov-02 18:17
sitebuilderNish Nishant29-Nov-02 18:17 

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.