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

C / C++ / MFC

 
GeneralHw to use CArray template Pin
Özgür20-Jun-01 21:15
Özgür20-Jun-01 21:15 
GeneralRe: Hw to use CArray template Pin
Bob Groves20-Jun-01 21:32
Bob Groves20-Jun-01 21:32 
GeneralRe: Hw to use CArray template Pin
Bob Groves20-Jun-01 21:33
Bob Groves20-Jun-01 21:33 
GeneralRe: Hw to use CArray template Pin
Bob Groves20-Jun-01 21:34
Bob Groves20-Jun-01 21:34 
GeneralRe: Hw to use CArray template Pin
Christian Graus20-Jun-01 22:22
protectorChristian Graus20-Jun-01 22:22 
GeneralRe: Hw to use CArray template Pin
21-Jun-01 5:32
suss21-Jun-01 5:32 
GeneralMemory leak Pin
parag20-Jun-01 20:56
parag20-Jun-01 20:56 
GeneralRe: Memory leak Pin
Christian Graus20-Jun-01 22:25
protectorChristian Graus20-Jun-01 22:25 
By making sure you don't leak memory. When you select a pen or brush into a DC, a CPen* or CBrush * is returned and must be caught/selected back before the DC is deleted.

CPen* pOld = DC.SelectObject(&myPen);
//draw some stuff
DC.SelectObject(pOld); // Now the memory leak is taken care of.

Christian

#include "std_disclaimer.h"

People who love sausage and respect the law should never watch either one being made.

The things that come to those who wait are usually the things left by those who got there first.

GeneralLVN_ITEMCHANGED - CListCtrl Pin
sankar20-Jun-01 20:49
sankar20-Jun-01 20:49 
GeneralRe: LVN_ITEMCHANGED - CListCtrl Pin
Michael Dunn20-Jun-01 20:53
sitebuilderMichael Dunn20-Jun-01 20:53 
GeneralRe: LVN_ITEMCHANGED - CListCtrl Pin
Michael Dunn20-Jun-01 21:43
sitebuilderMichael Dunn20-Jun-01 21:43 
Questionhow can i handle file commands to read and write xml files Pin
pathi20-Jun-01 20:27
pathi20-Jun-01 20:27 
AnswerRe: how can i handle file commands to read and write xml files Pin
Tomasz Sowinski21-Jun-01 0:24
Tomasz Sowinski21-Jun-01 0:24 
GeneralRe: how can i handle file commands to read and write xml files Pin
pathi21-Jun-01 23:56
pathi21-Jun-01 23:56 
GeneralRe: how can i handle file commands to read and write xml files Pin
Tomasz Sowinski22-Jun-01 1:50
Tomasz Sowinski22-Jun-01 1:50 
QuestionHow can I send a key combination (for example Ctrl+F2) to any window? Pin
20-Jun-01 20:03
suss20-Jun-01 20:03 
AnswerRe: How can I send a key combination (for example Ctrl+F2) to any window? Pin
Amit Jain21-Jun-01 4:35
Amit Jain21-Jun-01 4:35 
GeneralPrint preview Pin
20-Jun-01 18:38
suss20-Jun-01 18:38 
GeneralRe: Print preview Pin
Christian Graus20-Jun-01 18:54
protectorChristian Graus20-Jun-01 18:54 
GeneralRe: Print preview Pin
20-Jun-01 20:32
suss20-Jun-01 20:32 
GeneralRe: Print preview Pin
Christian Graus20-Jun-01 22:26
protectorChristian Graus20-Jun-01 22:26 
General'GetUserName' failure Pin
Todd Shipp20-Jun-01 17:28
Todd Shipp20-Jun-01 17:28 
GeneralRe: 'GetUserName' failure Pin
Christian Graus20-Jun-01 18:57
protectorChristian Graus20-Jun-01 18:57 
GeneralRe: 'GetUserName' failure Pin
markkuk20-Jun-01 19:31
markkuk20-Jun-01 19:31 
GeneralRe: 'GetUserName' failure Pin
Orbital^20-Jun-01 22:39
Orbital^20-Jun-01 22:39 

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.