Click here to Skip to main content
16,005,467 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: CreateThread()..does not compile Pin
Stephen Hewitt23-Jan-07 11:23
Stephen Hewitt23-Jan-07 11:23 
QuestionCAnimationCtrl - problem refreshing the screen - Need help Pin
VVS_CODEPROJ22-Jan-07 23:45
VVS_CODEPROJ22-Jan-07 23:45 
QuestionCombo Box - Drop down height. Pin
priyank_ldce22-Jan-07 23:36
priyank_ldce22-Jan-07 23:36 
AnswerRe: Combo Box - Drop down height. Pin
Cedric Moonen22-Jan-07 23:41
Cedric Moonen22-Jan-07 23:41 
QuestionWin32 equivalent of CPtrList Pin
dharani22-Jan-07 23:01
dharani22-Jan-07 23:01 
AnswerRe: Win32 equivalent of CPtrList Pin
Cedric Moonen22-Jan-07 23:17
Cedric Moonen22-Jan-07 23:17 
AnswerRe: Win32 equivalent of CPtrList Pin
san123pune22-Jan-07 23:18
san123pune22-Jan-07 23:18 
GeneralRe: Win32 equivalent of CPtrList Pin
Cedric Moonen22-Jan-07 23:26
Cedric Moonen22-Jan-07 23:26 
san123pune wrote:
It is better to use vector or list with void * as contai


That is not very elegant because you will need to cast the void pointer back to its class when you want to delete it (otherwise, the destructor won't be called).

A better way to do that (if polymorphism is needed) is simply to have a list of pointers to the base class. So in that case when you delete all the elements of the array, the destructor will be called.


Cédric Moonen
Software developer

Charting control [v1.1]

QuestionASCII vs UNICODE Pin
manu_220522-Jan-07 23:00
manu_220522-Jan-07 23:00 
AnswerRe: ASCII vs UNICODE Pin
san123pune22-Jan-07 23:14
san123pune22-Jan-07 23:14 
GeneralRe: ASCII vs UNICODE Pin
toxcct22-Jan-07 23:19
toxcct22-Jan-07 23:19 
GeneralRe: ASCII vs UNICODE Pin
san123pune22-Jan-07 23:25
san123pune22-Jan-07 23:25 
GeneralRe: ASCII vs UNICODE Pin
toxcct22-Jan-07 23:27
toxcct22-Jan-07 23:27 
GeneralRe: ASCII vs UNICODE Pin
Roger Stoltz22-Jan-07 23:48
Roger Stoltz22-Jan-07 23:48 
GeneralRe: ASCII vs UNICODE Pin
toxcct22-Jan-07 23:50
toxcct22-Jan-07 23:50 
GeneralRe: ASCII vs UNICODE Pin
Roger Stoltz22-Jan-07 23:54
Roger Stoltz22-Jan-07 23:54 
AnswerRe: ASCII vs UNICODE Pin
Roger Stoltz22-Jan-07 23:55
Roger Stoltz22-Jan-07 23:55 
QuestionVector of class with contractor Pin
Ohad Cabiri22-Jan-07 22:48
Ohad Cabiri22-Jan-07 22:48 
AnswerRe: Vector of class with contractor Pin
Cedric Moonen22-Jan-07 23:23
Cedric Moonen22-Jan-07 23:23 
GeneralRe: Vector of class with contractor Pin
Ohad Cabiri23-Jan-07 0:31
Ohad Cabiri23-Jan-07 0:31 
AnswerRe: Vector of class with contractor Pin
Michael Dunn23-Jan-07 8:07
sitebuilderMichael Dunn23-Jan-07 8:07 
QuestionADsGetObject takes more time Pin
SelvaKr22-Jan-07 22:46
SelvaKr22-Jan-07 22:46 
QuestionHow can i write function that search for file on the disk ? Pin
Yanshof22-Jan-07 22:43
Yanshof22-Jan-07 22:43 
AnswerSome please can help me with this one ? Pin
Yanshof23-Jan-07 0:29
Yanshof23-Jan-07 0:29 
GeneralRe: Some please can help me with this one ? Pin
somasundaram_be23-Jan-07 0:49
somasundaram_be23-Jan-07 0:49 

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.