Click here to Skip to main content
15,895,142 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Newbie Ques: How to get all Files and Directorys in a Directory? Pin
BlackDice8-Dec-04 5:55
BlackDice8-Dec-04 5:55 
AnswerRe: Newbie Ques: How to get all Files and Directorys in a Directory? Pin
alex.barylski8-Dec-04 11:45
alex.barylski8-Dec-04 11:45 
QuestionHow to change SW_SHOWDEFAULT Pin
mcgahanfl8-Dec-04 4:50
mcgahanfl8-Dec-04 4:50 
AnswerRe: How to change SW_SHOWDEFAULT Pin
David Crow8-Dec-04 5:09
David Crow8-Dec-04 5:09 
General'Find' algorithm for vector using pointer to class object Pin
BlackDice8-Dec-04 4:06
BlackDice8-Dec-04 4:06 
GeneralRe: 'Find' algorithm for vector using pointer to class object Pin
Jack Puppy8-Dec-04 15:01
Jack Puppy8-Dec-04 15:01 
GeneralRe: 'Find' algorithm for vector using pointer to class object Pin
BlackDice9-Dec-04 2:42
BlackDice9-Dec-04 2:42 
GeneralRe: 'Find' algorithm for vector using pointer to class object Pin
Jack Puppy9-Dec-04 13:46
Jack Puppy9-Dec-04 13:46 
Is there any reason you can see why I shouldn't use the objects themselves instead of pointers? This seems to be a cleaner solution, but I'm not sure. Your solution is great, but I'm thinking it's better not to use workarounds if I don't have to?

It's perfectly fine to use the objects, I don't see it being a problem at all.

The rule of thumb I used to use, was to use pointers if the class was large/complex, that way algorithms/functions could access the object using a simple pointer address (32 bit variable) instead of creating a new copy of the object each time. The only reason for this (that I was told) was the speed gain, and given how fast today's computers are, there may not be much of a speed difference anymore.



Suspicious | :suss: Pssst. You see that little light on your monitor? That's actually a government installed spy camera. Smile and wave to big brother!
GeneralCListCtrl and Ado RecordSet Pin
shiraztk8-Dec-04 2:40
shiraztk8-Dec-04 2:40 
GeneralRe: CListCtrl and Ado RecordSet Pin
David Crow8-Dec-04 2:45
David Crow8-Dec-04 2:45 
GeneralRe: CListCtrl and Ado RecordSet Pin
shiraztk8-Dec-04 3:02
shiraztk8-Dec-04 3:02 
GeneralRe: CListCtrl and Ado RecordSet Pin
David Crow8-Dec-04 3:29
David Crow8-Dec-04 3:29 
GeneralNTGraph2D and VC++ .NET Pin
doneirik8-Dec-04 2:32
doneirik8-Dec-04 2:32 
QuestionHow to retrieve a VCProject object? Pin
Franz Klein8-Dec-04 2:17
Franz Klein8-Dec-04 2:17 
QuestionHow to convert BD_ADDR to BT_ADDR? Pin
eli150219798-Dec-04 1:20
eli150219798-Dec-04 1:20 
Questionusing ipconfig....help required??? Pin
shkhan8-Dec-04 0:43
shkhan8-Dec-04 0:43 
QuestionHow to copy files to another computer using Window XP by programming? Pin
dungle308-Dec-04 0:40
dungle308-Dec-04 0:40 
AnswerRe: How to copy files to another computer using Window XP by programming? Pin
David Crow8-Dec-04 2:38
David Crow8-Dec-04 2:38 
GeneralRe: How to copy files to another computer using Window XP by programming? Pin
dungle308-Dec-04 15:08
dungle308-Dec-04 15:08 
GeneralRe: How to copy files to another computer using Window XP by programming? Pin
David Crow9-Dec-04 2:31
David Crow9-Dec-04 2:31 
QuestionHow to minimize the window? Pin
ting6688-Dec-04 0:30
ting6688-Dec-04 0:30 
AnswerRe: How to minimize the window? Pin
ThatsAlok8-Dec-04 1:29
ThatsAlok8-Dec-04 1:29 
AnswerRe: How to minimize the window? Pin
David Crow8-Dec-04 2:40
David Crow8-Dec-04 2:40 
AnswerRe: How to minimize the window? Pin
toxcct8-Dec-04 21:42
toxcct8-Dec-04 21:42 
GeneralLstCtrl::FindItem() doubt Pin
xcavin8-Dec-04 0:08
xcavin8-Dec-04 0:08 

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.