Click here to Skip to main content
15,912,329 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: bug in CPrintDialog with Win95/98 ? Pin
jpg17-Jan-03 2:57
jpg17-Jan-03 2:57 
GeneralOf Rich Text, images and memory leaks Pin
Daniel Salby17-Jan-03 0:12
Daniel Salby17-Jan-03 0:12 
GeneralXP Style Pin
Ajesh kumar17-Jan-03 0:12
Ajesh kumar17-Jan-03 0:12 
Generalmemory allocation Pin
Paul Silvernail17-Jan-03 0:09
Paul Silvernail17-Jan-03 0:09 
GeneralRe: memory allocation Pin
Hesham Amin17-Jan-03 2:54
Hesham Amin17-Jan-03 2:54 
GeneralRe: memory allocation Pin
AlexO17-Jan-03 2:59
AlexO17-Jan-03 2:59 
GeneralRe: memory allocation Pin
Paul Silvernail17-Jan-03 6:28
Paul Silvernail17-Jan-03 6:28 
GeneralRe: memory allocation Pin
AlexO17-Jan-03 6:47
AlexO17-Jan-03 6:47 
Hey, You did not ask if it was foolish, you ask how to do itSmile | :)
Actually, it is a design decision you have to make.
Deleting inside the function might present additional problems
1. What if the user of the function passes uninitialized pointer?
2. What if the user of the function passes the pointer which initialized to something that can not be deleted (_T("static string"))?

Windows APIs usually leave memory deallocation to the client of the function. But again - it is your decision.




GeneralRe: memory allocation Pin
Paul Silvernail17-Jan-03 10:06
Paul Silvernail17-Jan-03 10:06 
GeneralUrgent __asm question Pin
yektoop17-Jan-03 0:05
yektoop17-Jan-03 0:05 
GeneralRe: Urgent __asm question Pin
geo_m17-Jan-03 0:15
geo_m17-Jan-03 0:15 
GeneralRe: Urgent __asm question Pin
peterchen17-Jan-03 1:14
peterchen17-Jan-03 1:14 
Generalxx Pin
Anonymous16-Jan-03 23:17
Anonymous16-Jan-03 23:17 
GeneralRe: xx Pin
Anonymous16-Jan-03 23:18
Anonymous16-Jan-03 23:18 
GeneralRe: xx Pin
Rage16-Jan-03 23:26
professionalRage16-Jan-03 23:26 
GeneralRe: xx Pin
Christian Graus16-Jan-03 23:34
protectorChristian Graus16-Jan-03 23:34 
GeneralAssign Shortcut in DevStudio Macro Pin
peterchen16-Jan-03 23:10
peterchen16-Jan-03 23:10 
GeneralVertical rebar bands stretching Pin
Bartosz Bien16-Jan-03 23:11
Bartosz Bien16-Jan-03 23:11 
GeneralLOCK System Pin
suresh_sathya16-Jan-03 22:23
suresh_sathya16-Jan-03 22:23 
GeneralRe: LOCK System Pin
xxhimanshu17-Jan-03 0:22
xxhimanshu17-Jan-03 0:22 
GeneralTreeCtrl & SetitemData Pin
jeremysay16-Jan-03 22:03
jeremysay16-Jan-03 22:03 
GeneralRe: TreeCtrl & SetitemData Pin
Rage16-Jan-03 23:11
professionalRage16-Jan-03 23:11 
GeneralRe: TreeCtrl & SetitemData Pin
jeremysay16-Jan-03 23:13
jeremysay16-Jan-03 23:13 
GeneralRe: TreeCtrl & SetitemData Pin
Rage16-Jan-03 23:24
professionalRage16-Jan-03 23:24 
GeneralRe: TreeCtrl & SetitemData Pin
jeremysay16-Jan-03 23:39
jeremysay16-Jan-03 23: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.