Click here to Skip to main content
15,882,924 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: 890927 - Invalid Input Format exception in sscanf_s Pin
jschell19-Dec-10 9:50
jschell19-Dec-10 9:50 
GeneralRe: 890927 - Invalid Input Format exception in sscanf_s Pin
ilostmyid222-Dec-10 19:42
professionalilostmyid222-Dec-10 19:42 
Question'Fake' the freespace of a hdd Pin
ALLERSLIT17-Dec-10 23:54
ALLERSLIT17-Dec-10 23:54 
AnswerRe: 'Fake' the freespace of a hdd Pin
Richard MacCutchan18-Dec-10 4:43
mveRichard MacCutchan18-Dec-10 4:43 
QuestionRe: 'Fake' the freespace of a hdd Pin
David Crow20-Dec-10 3:19
David Crow20-Dec-10 3:19 
QuestionFor Loop & Array Issue. Pin
Mike Certini17-Dec-10 10:48
Mike Certini17-Dec-10 10:48 
AnswerRe: For Loop & Array Issue. Pin
User 742933817-Dec-10 11:01
professionalUser 742933817-Dec-10 11:01 
QuestionMFC CArray vs Vectors [modified] Pin
Software200717-Dec-10 6:54
Software200717-Dec-10 6:54 
I am a bit unclear on the issue of Arrays vs vectors. Recently, I have started learning STL. I am more familiar with MFC. What is the big difference between vectors and the CArray, Cstring and std::string.
Vectors vs CArrays: CArray has all the tools that I need just like vectors and to me it looks more straight forward than vectors, but thats only me. I do realize there is a problem with copy constructors in CArrays. I know CArray is derived from objects and I am guessing vecto is not. So, does this make vectors a lot more efficient interms of memory usage?

CString vs std::string: same goes for strings, even though I find that I can do more with CString.

Besides portability, I don't see a major advantage of vectors.
Can someone clarify the real differences for me?

Thanks

modified on Friday, December 17, 2010 1:04 PM

AnswerRe: MFC CArray vs Vectors Pin
«_Superman_»17-Dec-10 7:15
professional«_Superman_»17-Dec-10 7:15 
AnswerRe: MFC CArray vs Vectors Pin
Maximilien17-Dec-10 8:01
Maximilien17-Dec-10 8:01 
AnswerRe: MFC CArray vs Vectors Pin
CPallini17-Dec-10 9:38
mveCPallini17-Dec-10 9:38 
QuestionDT_CALCRECT Pin
john563217-Dec-10 5:48
john563217-Dec-10 5:48 
AnswerRe: DT_CALCRECT Pin
Maximilien17-Dec-10 6:40
Maximilien17-Dec-10 6:40 
QuestionMessage Removed Pin
17-Dec-10 2:28
mathivanaan17-Dec-10 2:28 
AnswerRe: how to set X and Y axis range from MFC dialog box? Pin
loyal ginger17-Dec-10 3:01
loyal ginger17-Dec-10 3:01 
AnswerRe: how to set X and Y axis range from MFC dialog box? Pin
Cedric Moonen17-Dec-10 4:43
Cedric Moonen17-Dec-10 4:43 
QuestionMessage Removed Pin
17-Dec-10 0:57
Jia10017-Dec-10 0:57 
AnswerRe: Debugging problem Pin
Luc Pattyn17-Dec-10 2:26
sitebuilderLuc Pattyn17-Dec-10 2:26 
GeneralMessage Removed Pin
17-Dec-10 3:27
Jia10017-Dec-10 3:27 
GeneralRe: Debugging problem Pin
Luc Pattyn17-Dec-10 3:36
sitebuilderLuc Pattyn17-Dec-10 3:36 
GeneralRe: Debugging problem Pin
Maximilien17-Dec-10 4:52
Maximilien17-Dec-10 4:52 
GeneralRe: Debugging problem Pin
Richard MacCutchan17-Dec-10 5:08
mveRichard MacCutchan17-Dec-10 5:08 
GeneralRe: Debugging problem Pin
Maximilien17-Dec-10 8:02
Maximilien17-Dec-10 8:02 
QuestionRe: Debugging problem Pin
Maximilien17-Dec-10 4:51
Maximilien17-Dec-10 4:51 
QuestionVisual C++ Pin
John50216-Dec-10 23:42
John50216-Dec-10 23: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.