Click here to Skip to main content
15,888,401 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralERROR_ACCESS_DENIED and openprocesstoken() Pin
dp522-Dec-03 17:01
dp522-Dec-03 17:01 
GeneralOnkeyDown in dialog Pin
satadru22-Dec-03 16:51
satadru22-Dec-03 16:51 
GeneralRe: onkeydown in dialog Pin
Monty222-Dec-03 17:59
Monty222-Dec-03 17:59 
GeneralRe: onkeydown in dialog Pin
satadru22-Dec-03 19:35
satadru22-Dec-03 19:35 
GeneralRe: onkeydown in dialog Pin
zeki yugnak23-Dec-03 1:04
zeki yugnak23-Dec-03 1:04 
GeneralVirtual CListView page scrolling Pin
ldaoust22-Dec-03 15:57
ldaoust22-Dec-03 15:57 
QuestionPlease help! the way using SetBitmap, no memory leak? Pin
twing22-Dec-03 15:26
twing22-Dec-03 15:26 
AnswerRe: Please help! the way using SetBitmap, no memory leak? Pin
Monty222-Dec-03 18:05
Monty222-Dec-03 18:05 
if you allocate memory via new operator
then you have to delete it via delete operator
otherwise memory will be leaked

in ur case delete pbmp
would be done in OnDestroy

pbmp should not be a local variable (define it in class)



Live as if your were to die tomorrow. Learn as if you were to live forever.
-Mahatma Gandhi
GeneralRe: absolutely in OnDestroy? No other way? Pin
twing22-Dec-03 19:16
twing22-Dec-03 19:16 
GeneralRe: absolutely in OnDestroy? No other way? Pin
Monty222-Dec-03 19:36
Monty222-Dec-03 19:36 
GeneralRe: because i use it in some threads! Pin
twing22-Dec-03 19:44
twing22-Dec-03 19:44 
GeneralRe: Please help! Smart points could solve my problem??? Pin
twing22-Dec-03 19:34
twing22-Dec-03 19:34 
QuestionBuggy window behavior? Pin
Jerry Hammond22-Dec-03 14:04
Jerry Hammond22-Dec-03 14:04 
AnswerRe: Buggy window behavior? Pin
alex.barylski22-Dec-03 16:25
alex.barylski22-Dec-03 16:25 
AnswerRe: Buggy window behavior? Pin
Chris Richardson22-Dec-03 18:07
Chris Richardson22-Dec-03 18:07 
AnswerRe: Buggy window behavior? Pin
Monty222-Dec-03 18:09
Monty222-Dec-03 18:09 
AnswerRe: Buggy window behavior? Pin
Jerry Hammond23-Dec-03 7:48
Jerry Hammond23-Dec-03 7:48 
AnswerRe: Buggy window behavior? Pin
nema3223-Dec-03 8:08
nema3223-Dec-03 8:08 
QuestionHow to detect logoff and lock event from atl COM Service Pin
Chak22-Dec-03 12:30
Chak22-Dec-03 12:30 
AnswerRe: How to detect logoff and lock event from atl COM Service Pin
Robert Kuster22-Dec-03 13:28
Robert Kuster22-Dec-03 13:28 
GeneralCSocket stops receiving data Pin
Daniel 'Tak' M.22-Dec-03 12:05
Daniel 'Tak' M.22-Dec-03 12:05 
Generalemulating console mode in a window Pin
Ray Gregory22-Dec-03 11:50
Ray Gregory22-Dec-03 11:50 
GeneralRe: emulating console mode in a window Pin
Tim Smith22-Dec-03 12:16
Tim Smith22-Dec-03 12:16 
GeneralRe: emulating console mode in a window Pin
Jörgen Sigvardsson22-Dec-03 13:12
Jörgen Sigvardsson22-Dec-03 13:12 
Generalc++ dll: window not created properly Pin
Extremor22-Dec-03 11:25
Extremor22-Dec-03 11:25 

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.