Click here to Skip to main content
15,887,998 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
AnswerRe: Will sort method in STL cause memory disorder? Pin
jbarton17-Nov-03 5:20
jbarton17-Nov-03 5:20 
GeneralHINSTANCE Pin
alex.barylski15-Nov-03 8:36
alex.barylski15-Nov-03 8:36 
GeneralRe: HINSTANCE Pin
Michael Dunn15-Nov-03 16:39
sitebuilderMichael Dunn15-Nov-03 16:39 
GeneralCImageList Pin
alex.barylski14-Nov-03 14:47
alex.barylski14-Nov-03 14:47 
GeneralRe: CImageList Pin
Michael Dunn14-Nov-03 16:00
sitebuilderMichael Dunn14-Nov-03 16:00 
GeneralRe: CImageList Pin
alex.barylski14-Nov-03 16:58
alex.barylski14-Nov-03 16:58 
GeneralRe: CImageList Pin
Michael Dunn14-Nov-03 18:20
sitebuilderMichael Dunn14-Nov-03 18:20 
GeneralRe: CImageList Pin
umeca7414-Nov-03 23:04
umeca7414-Nov-03 23:04 
although most WTL classes take care of releasing the object they manage (if they manage it), CImageList is a sore exception. I guess it is not an ideal world! Perhaps it is because imagelists have window semantics and as "windows" you need to destroy them manually

To answer your question, yes you should destroy all imagelists you create yourself, ideally at the moment you no longer require them. However the "system" imagelist returned by SHGetFileInfo is a shared resource which you needn't (shouldn't in 9x) destroy

most of the other WTL classes have a managed and unmanaged "flavor". E.g. you have CBitmap and CBitmapHandle; the first is managed, destroying the bitmap whenever it goes out of scope, the second is meant for temporary assignments.

GeneralEnter key in rich edit control Pin
ted_yu14-Nov-03 7:48
ted_yu14-Nov-03 7:48 
GeneralComposite control Drag & Drop Pin
Member 31248914-Nov-03 0:19
Member 31248914-Nov-03 0:19 
Generalini file Pin
jasu12-Nov-03 22:36
jasu12-Nov-03 22:36 
GeneralWTl in ATL 7 control Pin
Gabriel.P.G12-Nov-03 9:25
Gabriel.P.G12-Nov-03 9:25 
GeneralProblem with atl vc7 and sinkmap Pin
_Magnus_12-Nov-03 0:48
_Magnus_12-Nov-03 0:48 
GeneralRe: Problem with atl vc7 and sinkmap Pin
geo_m12-Nov-03 3:04
geo_m12-Nov-03 3:04 
GeneralRe: Problem with atl vc7 and sinkmap Pin
_Magnus_12-Nov-03 3:25
_Magnus_12-Nov-03 3:25 
GeneralRe: Problem with atl vc7 and sinkmap Pin
Michael Dunn12-Nov-03 7:25
sitebuilderMichael Dunn12-Nov-03 7:25 
GeneralRe: Problem with atl vc7 and sinkmap Pin
_Magnus_12-Nov-03 21:46
_Magnus_12-Nov-03 21:46 
GeneralSetup problem of the Atl project Pin
Fox Ray11-Nov-03 20:42
Fox Ray11-Nov-03 20:42 
GeneralRe: Setup problem of the Atl project Pin
geo_m12-Nov-03 3:11
geo_m12-Nov-03 3:11 
GeneralRe: Setup problem of the Atl project Pin
Fox Ray12-Nov-03 13:21
Fox Ray12-Nov-03 13:21 
GeneralRe: Setup problem of the Atl project Pin
geo_m15-Nov-03 2:18
geo_m15-Nov-03 2:18 
GeneralCasting an interface to an internal class Pin
Giles11-Nov-03 11:07
Giles11-Nov-03 11:07 
GeneralRe: Casting an interface to an internal class Pin
Tim Smith11-Nov-03 11:54
Tim Smith11-Nov-03 11:54 
GeneralRe: Casting an interface to an internal class Pin
Michael Dunn11-Nov-03 13:37
sitebuilderMichael Dunn11-Nov-03 13:37 
GeneralRe: Casting an interface to an internal class Pin
Giles11-Nov-03 20:41
Giles11-Nov-03 20:41 

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.