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

C / C++ / MFC

 
GeneralRe: Exit Code Level 2 Pin
David Crow6-Nov-07 2:45
David Crow6-Nov-07 2:45 
GeneralRe: Exit Code Level 2 Pin
Llasus6-Nov-07 14:45
Llasus6-Nov-07 14:45 
QuestionBuilding VC++ Samples from windows platform sdk server 2003 r2 Pin
shatterstar64575-Nov-07 11:15
shatterstar64575-Nov-07 11:15 
AnswerRe: Building VC++ Samples from windows platform sdk server 2003 r2 Pin
Mark Salsbery5-Nov-07 11:21
Mark Salsbery5-Nov-07 11:21 
GeneralRe: Building VC++ Samples from windows platform sdk server 2003 r2 Pin
shatterstar64575-Nov-07 11:53
shatterstar64575-Nov-07 11:53 
GeneralRe: Building VC++ Samples from windows platform sdk server 2003 r2 Pin
Mark Salsbery5-Nov-07 12:08
Mark Salsbery5-Nov-07 12:08 
GeneralRe: Building VC++ Samples from windows platform sdk server 2003 r2 Pin
Mark Salsbery5-Nov-07 12:51
Mark Salsbery5-Nov-07 12:51 
QuestionCan I create two Cbrush object at same time? [modified] Pin
Gofur Halmurat5-Nov-07 10:53
Gofur Halmurat5-Nov-07 10:53 
Hello,
Can i create two Cbrush objects in same dialog class?, i tried to do like this
<br />
void CMyChessView::OnDraw(CDC* pDC)<br />
{<br />
CBrush *white = new CBrush;<br />
CBrush *black = new CBrush;<br />
<br />
	CMyChessDoc* pDoc = GetDocument();<br />
	ASSERT_VALID(pDoc);<br />
	// TODO: add draw code for native data here<br />
	white->CreateSolidBrush(RGB(255,255,255));<br />
	black->CreateSolidBrush(RGB(0,0,0));<br />
	<br />
	for (int i=1;i<=8;i++)<br />
		for (int j=1;j<=8;j++)<br />
		{<br />
			pDC->Rectangle((i-1)*56,(j-1)*56,i*56,j*56);<br />
		}<br />
<br />
	<br />
<br />
	<br />
}<br />


but onresize the window some exception errors accured? does anyone know why the errors?



-- modified at 17:02 Monday 5th November, 2007
QuestionRe: Can I create two Cbrush object at same time? Pin
Mark Salsbery5-Nov-07 10:56
Mark Salsbery5-Nov-07 10:56 
AnswerRe: Can I create two Cbrush object at same time? Pin
Gofur Halmurat5-Nov-07 10:59
Gofur Halmurat5-Nov-07 10:59 
GeneralRe: Can I create two Cbrush object at same time? Pin
Mark Salsbery5-Nov-07 11:12
Mark Salsbery5-Nov-07 11:12 
GeneralRe: Can I create two Cbrush object at same time? Pin
Gofur Halmurat5-Nov-07 11:18
Gofur Halmurat5-Nov-07 11:18 
GeneralRe: Can I create two Cbrush object at same time? Pin
Mark Salsbery5-Nov-07 11:17
Mark Salsbery5-Nov-07 11:17 
GeneralRe: Can I create two Cbrush object at same time? Pin
Gofur Halmurat5-Nov-07 11:25
Gofur Halmurat5-Nov-07 11:25 
Questiongreat c++ website for learning Pin
nwahsbac5-Nov-07 10:28
nwahsbac5-Nov-07 10:28 
AnswerRe: great c++ website for learning Pin
Gofur Halmurat5-Nov-07 11:07
Gofur Halmurat5-Nov-07 11:07 
AnswerRe: great c++ website for learning Pin
Dustin Henry5-Nov-07 11:17
Dustin Henry5-Nov-07 11:17 
QuestionCreating Shortcuts on the run Pin
shpid3r5-Nov-07 9:36
shpid3r5-Nov-07 9:36 
AnswerRe: Creating Shortcuts on the run Pin
Mark Salsbery5-Nov-07 10:54
Mark Salsbery5-Nov-07 10:54 
AnswerRe: Creating Shortcuts on the run Pin
shpid3r6-Nov-07 5:43
shpid3r6-Nov-07 5:43 
QuestionMaking a DLL Pin
wajih.boukaram5-Nov-07 6:55
wajih.boukaram5-Nov-07 6:55 
AnswerRe: Making a DLL Pin
toxcct5-Nov-07 6:57
toxcct5-Nov-07 6:57 
GeneralRe: Making a DLL Pin
wajih.boukaram5-Nov-07 7:04
wajih.boukaram5-Nov-07 7:04 
AnswerRe: Making a DLL Pin
Mark Salsbery5-Nov-07 7:11
Mark Salsbery5-Nov-07 7:11 
GeneralRe: Making a DLL Pin
led mike5-Nov-07 7:18
led mike5-Nov-07 7:18 

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.