Click here to Skip to main content
15,910,083 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Can Dialog have more than 256 controls??? Pin
Not Active30-Jan-02 1:54
mentorNot Active30-Jan-02 1:54 
GeneralRe: Can Dialog have more than 256 controls??? Pin
Rüpel30-Jan-02 3:05
Rüpel30-Jan-02 3:05 
GeneralHelp on obtaining a pointer to my CDocument derived class Pin
VanHlebar29-Jan-02 16:40
VanHlebar29-Jan-02 16:40 
GeneralRe: Help on obtaining a pointer to my CDocument derived class Pin
Jens Kreiensiek29-Jan-02 21:09
Jens Kreiensiek29-Jan-02 21:09 
GeneralRe: Help on obtaining a pointer to my CDocument derived class Pin
VanHlebar30-Jan-02 1:47
VanHlebar30-Jan-02 1:47 
Questionhow to do a Custom draw CTreeCtrl Pin
zhangyifei29-Jan-02 14:59
zhangyifei29-Jan-02 14:59 
AnswerRe: how to do a Custom draw CTreeCtrl Pin
wangyiming30-Jan-02 0:12
wangyiming30-Jan-02 0:12 
GeneralTemplate collection classes in VC++7 Pin
paulb29-Jan-02 13:32
paulb29-Jan-02 13:32 
With VC++ 7 they have removed the helper functions CreateElements and DestructElements for the template collection classes. You are supposed to be using constructors and destructors now, but this is a big problem when the collection contains pointers to objects since I used to do something like this...

CSomeClass * pItem = new CSomeClass();
CArray < CSomeClass*, CSomeClass* > array;
array.Add(pItem);

Then I would override DestructElements to delete the objects when elements of the collection were deleted.

No more! Eek! | :eek:

I have a lot of code using the collection classes like this and the only thing I can think of is to rewrite it using smart pointers as the collection elements, using reference counting so the objects can delete themselves when no longer referenced.

This is a pain in the *** though, any alternatives?
GeneralRe: Template collection classes in VC++7 Pin
Joaquín M López Muñoz29-Jan-02 20:01
Joaquín M López Muñoz29-Jan-02 20:01 
QuestionHow to grab system icons Pin
Aaron Schaefer29-Jan-02 12:44
Aaron Schaefer29-Jan-02 12:44 
AnswerRe: How to grab system icons Pin
Joaquín M López Muñoz29-Jan-02 13:15
Joaquín M López Muñoz29-Jan-02 13:15 
GeneralRe: How to grab system icons Pin
Christopher Lord29-Jan-02 13:21
Christopher Lord29-Jan-02 13:21 
Generalnewbie question about staticly linked exe's Pin
RobJones29-Jan-02 12:04
RobJones29-Jan-02 12:04 
GeneralRe: newbie question about staticly linked exe's Pin
Ravi Bhavnani29-Jan-02 12:20
professionalRavi Bhavnani29-Jan-02 12:20 
GeneralRe: newbie question about staticly linked exe's Pin
Simon Walton29-Jan-02 12:20
Simon Walton29-Jan-02 12:20 
GeneralRe: newbie question about staticly linked exe's Pin
Tim Smith29-Jan-02 12:20
Tim Smith29-Jan-02 12:20 
GeneralRe: newbie question about staticly linked exe's Pin
Joaquín M López Muñoz29-Jan-02 12:27
Joaquín M López Muñoz29-Jan-02 12:27 
GeneralDamned ActiveX control Pin
29-Jan-02 11:14
suss29-Jan-02 11:14 
GeneralRe: Damned ActiveX control Pin
Joaquín M López Muñoz29-Jan-02 12:52
Joaquín M López Muñoz29-Jan-02 12:52 
GeneralCopyImage with NT/W2K Pin
PJ Arends29-Jan-02 10:28
professionalPJ Arends29-Jan-02 10:28 
GeneralWinsock problem!! Pin
Rickard Andersson2029-Jan-02 10:01
Rickard Andersson2029-Jan-02 10:01 
GeneralRe: Winsock problem!! Pin
Joaquín M López Muñoz29-Jan-02 10:32
Joaquín M López Muñoz29-Jan-02 10:32 
GeneralRe: Winsock problem!! Pin
Nish Nishant29-Jan-02 20:19
sitebuilderNish Nishant29-Jan-02 20:19 
GeneralRe: Winsock problem!! Pin
Rickard Andersson2029-Jan-02 21:41
Rickard Andersson2029-Jan-02 21:41 
GeneralRe: Winsock problem!! Pin
Joaquín M López Muñoz29-Jan-02 23:13
Joaquín M López Muñoz29-Jan-02 23:13 

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.