Click here to Skip to main content
15,884,176 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CStringArray reference Pin
Cool_Dev25-May-11 4:11
Cool_Dev25-May-11 4:11 
AnswerRe: CStringArray reference Pin
Cedric Moonen23-May-11 20:49
Cedric Moonen23-May-11 20:49 
GeneralRe: CStringArray reference Pin
_Flaviu23-May-11 23:04
_Flaviu23-May-11 23:04 
QuestionMFC WebBrowser2 Control, PDF crash Pin
kitkat1201223-May-11 9:15
kitkat1201223-May-11 9:15 
QuestionCStringArray in CMap ? Pin
_Flaviu23-May-11 8:25
_Flaviu23-May-11 8:25 
AnswerRe: CStringArray in CMap ? Pin
David Crow23-May-11 8:50
David Crow23-May-11 8:50 
GeneralRe: CStringArray in CMap ? [modified] Pin
_Flaviu23-May-11 9:07
_Flaviu23-May-11 9:07 
GeneralRe: CStringArray in CMap ? Pin
Stefan_Lang23-May-11 23:42
Stefan_Lang23-May-11 23:42 
The problem with that is that when you add a new element to the map, only a pointer will be copied, not the contents of the array. So you need to keep track of these pointers and make sure they'll be deleted later.

The STL construct suggested above doesn't suffer from these problems, they'd do the copying for you.

I can think of no reason at all why anyone would want to use MFC when there is an easy to use alternative. Much of the MFC library is ancient and in a very bad shape. My personal experience is that, while you don't run into problems often, when you do it can take days to resolve the cause. I know for a fact that back in the time when I still used MFC I've lost weeks of valuable time just due to sloppy programming inside MFC. I've never had any such problems with STL.
QuestionNeed suggestion for thread test Pin
includeh1023-May-11 5:32
includeh1023-May-11 5:32 
QuestionRe: Need suggestion for thread test Pin
David Crow23-May-11 5:58
David Crow23-May-11 5:58 
AnswerRe: Need suggestion for thread test Pin
CPallini23-May-11 6:06
mveCPallini23-May-11 6:06 
GeneralRe: Need suggestion for thread test Pin
includeh1023-May-11 6:19
includeh1023-May-11 6:19 
GeneralRe: Need suggestion for thread test Pin
CPallini23-May-11 9:14
mveCPallini23-May-11 9:14 
AnswerRe: Need suggestion for thread test Pin
Luc Pattyn23-May-11 6:18
sitebuilderLuc Pattyn23-May-11 6:18 
GeneralRe: Need suggestion for thread test Pin
includeh1023-May-11 6:23
includeh1023-May-11 6:23 
GeneralRe: Need suggestion for thread test Pin
CPallini23-May-11 8:06
mveCPallini23-May-11 8:06 
GeneralRe: Need suggestion for thread test Pin
Maximilien24-May-11 4:15
Maximilien24-May-11 4:15 
AnswerRe: Need suggestion for thread test Pin
Stefan_Lang24-May-11 0:06
Stefan_Lang24-May-11 0:06 
QuestionCFileDialog Pin
sarfaraznawaz23-May-11 3:19
sarfaraznawaz23-May-11 3:19 
QuestionRe: CFileDialog Pin
David Crow23-May-11 3:50
David Crow23-May-11 3:50 
AnswerRe: CFileDialog Pin
Richard MacCutchan23-May-11 4:57
mveRichard MacCutchan23-May-11 4:57 
GeneralRe: CFileDialog Pin
sarfaraznawaz23-May-11 19:16
sarfaraznawaz23-May-11 19:16 
GeneralRe: CFileDialog Pin
Chandrasekharan P23-May-11 19:29
Chandrasekharan P23-May-11 19:29 
GeneralRe: CFileDialog Pin
sarfaraznawaz25-May-11 19:33
sarfaraznawaz25-May-11 19:33 
AnswerRe: CFileDialog Pin
abhishek.biradar23-May-11 19:42
abhishek.biradar23-May-11 19:42 

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.