Click here to Skip to main content
15,921,793 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Firewall Pin
Philip Fitzsimons22-Aug-02 23:05
Philip Fitzsimons22-Aug-02 23:05 
GeneralAn ADO question Pin
Anonymous22-Aug-02 18:22
Anonymous22-Aug-02 18:22 
GeneralRe: An ADO question Pin
Todd Smith22-Aug-02 18:43
Todd Smith22-Aug-02 18:43 
Generalfloats and doubles/Visual Studio C++6 Pin
dlm444422-Aug-02 17:33
dlm444422-Aug-02 17:33 
GeneralRe: floats and doubles/Visual Studio C++6 Pin
Paul M Watt22-Aug-02 18:52
mentorPaul M Watt22-Aug-02 18:52 
GeneralGDI Resource Issue Pin
Stew22-Aug-02 17:31
Stew22-Aug-02 17:31 
GeneralRe: GDI Resource Issue Pin
Tomasz Sowinski22-Aug-02 22:26
Tomasz Sowinski22-Aug-02 22:26 
GeneralRe: GDI Resource Issue Pin
Matthew R. Miller23-Aug-02 5:13
Matthew R. Miller23-Aug-02 5:13 
Restoring is key...

<br />
	// Declare variables<br />
	CPaintDC dc(this);<br />
        CPen *pOldPen;<br />
        CPen pPen;<br />
<br />
	// Create brushes and pens<br />
	CPen pPen(PS_SOLID, 1, RGB(0, 0, 255));<br />
<br />
	// Use pen<br />
	pOldPen = (CPen *) dc.SelectObject(&pPen);<br />
<br />
	// Restore the old GDI objects<br />
	dc.SelectObject(pOldPen);<br />


<><><><><><><><><><><><><><>
Matthew R. Miller
mattrmiller@computersmarts.net
www.computersmarts.net
QuestionHow to create a callback function? Pin
duen22-Aug-02 17:25
duen22-Aug-02 17:25 
AnswerRe: How to create a callback function? Pin
Todd Smith22-Aug-02 18:01
Todd Smith22-Aug-02 18:01 
GeneralRe: How to create a callback function? Pin
Matthew R. Miller23-Aug-02 5:15
Matthew R. Miller23-Aug-02 5:15 
GeneralDate class question Pin
philll22-Aug-02 17:22
philll22-Aug-02 17:22 
GeneralRe: Date class question Pin
Chris Losinger22-Aug-02 17:25
professionalChris Losinger22-Aug-02 17:25 
GeneralRe: Date class question Pin
philll22-Aug-02 17:29
philll22-Aug-02 17:29 
GeneralRe: Date class question Pin
Chris Losinger22-Aug-02 17:33
professionalChris Losinger22-Aug-02 17:33 
GeneralRe: Date class question Pin
philll22-Aug-02 17:41
philll22-Aug-02 17:41 
QuestionWhich STL container to choose? Pin
ns22-Aug-02 16:50
ns22-Aug-02 16:50 
AnswerRe: Which STL container to choose? Pin
Todd Smith22-Aug-02 17:19
Todd Smith22-Aug-02 17:19 
AnswerRe: Which STL container to choose? Pin
Paul M Watt22-Aug-02 19:15
mentorPaul M Watt22-Aug-02 19:15 
GeneralRe: Which STL container to choose? Pin
Tomasz Sowinski22-Aug-02 22:16
Tomasz Sowinski22-Aug-02 22:16 
GeneralRe: Which STL container to choose? Pin
Paul M Watt22-Aug-02 22:47
mentorPaul M Watt22-Aug-02 22:47 
GeneralThanks everyone! Pin
ns23-Aug-02 3:05
ns23-Aug-02 3:05 
Questioncan I have two command objects w same connection? Pin
ns22-Aug-02 16:34
ns22-Aug-02 16:34 
AnswerRe: can I have two command objects w same connection? Pin
Le centriste22-Aug-02 18:18
Le centriste22-Aug-02 18:18 
GeneralThanks for your responses. Pin
ns23-Aug-02 3:08
ns23-Aug-02 3:08 

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.