Click here to Skip to main content
16,006,749 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to get FileTime? Pin
David Crow20-Jan-05 2:31
David Crow20-Jan-05 2:31 
GeneralAdding/appending text to a window Pin
hugPW19-Jan-05 4:37
hugPW19-Jan-05 4:37 
GeneralRe: Adding/appending text to a window Pin
David Crow19-Jan-05 5:48
David Crow19-Jan-05 5:48 
GeneralRe: Adding/appending text to a window Pin
hugPW19-Jan-05 7:37
hugPW19-Jan-05 7:37 
QuestionHow can a hook_dll call the server application? Pin
Anonymous19-Jan-05 4:12
Anonymous19-Jan-05 4:12 
QuestionOnCtlColor Memory eater??? Pin
Cpt Rick19-Jan-05 3:26
Cpt Rick19-Jan-05 3:26 
AnswerRe: OnCtlColor Memory eater??? Pin
prcarp19-Jan-05 3:50
prcarp19-Jan-05 3:50 
AnswerRe: OnCtlColor Memory eater??? Pin
Roger Allen19-Jan-05 4:02
Roger Allen19-Jan-05 4:02 
As prcarp syas, you rcurrently creating a new brush everytime the function is called. Where is this GDI resource being returned to windows? Its up to you to clean it up.

As you dont actually use it yourself, you should make hbr a class member. Call CreateSolidBrush() in your calss constructor and DeleteObject() on it in the destructor.

This should stop you leaking GDI resources.

If you vote me down, my score will only get lower
GeneralRe: OnCtlColor Memory eater??? Pin
Cpt Rick19-Jan-05 6:18
Cpt Rick19-Jan-05 6:18 
GeneralCapturing logoff event in windows Pin
e_prabhu19-Jan-05 3:01
e_prabhu19-Jan-05 3:01 
GeneralRe: Capturing logoff event in windows Pin
David Crow19-Jan-05 3:08
David Crow19-Jan-05 3:08 
GeneralStrange problem with CDaoRecordset Pin
Manfred Staiger19-Jan-05 2:54
Manfred Staiger19-Jan-05 2:54 
GeneralRe: Strange problem with CDaoRecordset Pin
S Douglas19-Jan-05 4:07
professionalS Douglas19-Jan-05 4:07 
GeneralRe: Strange problem with CDaoRecordset Pin
Manfred Staiger19-Jan-05 4:40
Manfred Staiger19-Jan-05 4:40 
GeneralRe: Strange problem with CDaoRecordset Pin
S Douglas19-Jan-05 5:01
professionalS Douglas19-Jan-05 5:01 
GeneralRe: Strange problem with CDaoRecordset Pin
Manfred Staiger19-Jan-05 5:37
Manfred Staiger19-Jan-05 5:37 
GeneralRe: Strange problem with CDaoRecordset Pin
S Douglas19-Jan-05 19:00
professionalS Douglas19-Jan-05 19:00 
Generalsize from the childframe border Pin
neosun19-Jan-05 1:59
neosun19-Jan-05 1:59 
GeneralRe: size from the childframe border Pin
Antony M Kancidrowski19-Jan-05 3:39
Antony M Kancidrowski19-Jan-05 3:39 
GeneralRe: size from the childframe border Pin
Roger Allen19-Jan-05 4:04
Roger Allen19-Jan-05 4:04 
QuestionSetup HyperTerminal ?? Pin
Kabashiro19-Jan-05 1:26
Kabashiro19-Jan-05 1:26 
AnswerRe: Setup HyperTerminal ?? Pin
Antony M Kancidrowski19-Jan-05 3:43
Antony M Kancidrowski19-Jan-05 3:43 
GeneralMy bug or C++ bug Pin
Emilio Garavaglia19-Jan-05 1:19
Emilio Garavaglia19-Jan-05 1:19 
GeneralRe: My bug or C++ bug Pin
Antony M Kancidrowski19-Jan-05 3:53
Antony M Kancidrowski19-Jan-05 3:53 
GeneralRe: My bug or C++ bug Pin
Emilio Garavaglia19-Jan-05 4:22
Emilio Garavaglia19-Jan-05 4:22 

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.