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

C / C++ / MFC

 
AnswerRe: Why does CSimpleArray do this?? Pin
Tim Deveaux28-May-01 10:17
Tim Deveaux28-May-01 10:17 
GeneralRe: Why does CSimpleArray do this?? Pin
Tomasz Sowinski28-May-01 10:25
Tomasz Sowinski28-May-01 10:25 
GeneralRe: Why does CSimpleArray do this?? Pin
Tim Deveaux28-May-01 10:36
Tim Deveaux28-May-01 10:36 
GeneralRe: Why does CSimpleArray do this?? Pin
Tomasz Sowinski28-May-01 10:41
Tomasz Sowinski28-May-01 10:41 
GeneralRe: Why does CSimpleArray do this?? Pin
Tomasz Sowinski29-May-01 1:01
Tomasz Sowinski29-May-01 1:01 
GeneralRe: Why does CSimpleArray do this?? Pin
Tim Deveaux29-May-01 4:36
Tim Deveaux29-May-01 4:36 
GeneralRe: Why does CSimpleArray do this?? Pin
Ben Burnett28-May-01 16:06
Ben Burnett28-May-01 16:06 
GeneralRe: Why does CSimpleArray do this?? Pin
Tomasz Sowinski29-May-01 1:10
Tomasz Sowinski29-May-01 1:10 
> Maybe its a way to allow object's with no copy operator to be
> copied?

You mean the assignment operator, right? Yes, this method makes it possible. You're creating new objects at address CSimpleArray already knows. The class you're storing in CSimpleArray only needs public copy constructor.

Note that SetAtIndex has a bug: it doesn't explicitly invoke destructor for 'previous' object - the one that occupied nth index before calling SetAtIndex. For more details check my reply to Tim in this thread.

Tomasz Sowinski -- http://www.shooltz.com.pl
GeneralRe: Why does CSimpleArray do this?? Pin
Tim Deveaux29-May-01 7:48
Tim Deveaux29-May-01 7:48 
GeneralCataloguer Source PLZ Pin
BLaZe27-May-01 11:32
BLaZe27-May-01 11:32 
Generalc strcmp alternative Pin
27-May-01 11:24
suss27-May-01 11:24 
GeneralRe: c strcmp alternative Pin
Michael Dunn27-May-01 11:30
sitebuilderMichael Dunn27-May-01 11:30 
GeneralLoading Images & displaying on a CDC Pin
27-May-01 10:14
suss27-May-01 10:14 
GeneralRe: Loading Images & displaying on a CDC Pin
Michael Dunn27-May-01 11:31
sitebuilderMichael Dunn27-May-01 11:31 
GeneralThx! Still: Loading Images & displaying on a CDC? Pin
27-May-01 12:27
suss27-May-01 12:27 
GeneralRe: Thx! Still: Loading Images & displaying on a CDC? Pin
Christian Graus27-May-01 14:17
protectorChristian Graus27-May-01 14:17 
GeneralThank you both! Pin
27-May-01 22:07
suss27-May-01 22:07 
GeneralSerialazing in 'Dialog Based App' Pin
27-May-01 3:06
suss27-May-01 3:06 
GeneralSerialazing in 'Dialog Based App' Pin
27-May-01 3:06
suss27-May-01 3:06 
GeneralINI Files Pin
#realJSOP27-May-01 1:39
professional#realJSOP27-May-01 1:39 
GeneralRe: INI Files Pin
Christian Graus27-May-01 2:41
protectorChristian Graus27-May-01 2:41 
GeneralRe: INI Files Pin
#realJSOP27-May-01 3:53
professional#realJSOP27-May-01 3:53 
GeneralRe: INI Files Pin
#realJSOP28-May-01 1:04
professional#realJSOP28-May-01 1:04 
QuestionHow can I get a controls HWND ? Pin
26-May-01 9:34
suss26-May-01 9:34 
AnswerRe: How can I get a controls HWND ? Pin
26-May-01 10:28
suss26-May-01 10:28 

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.