timmay3141
Programmer
This is a stupid question, but I'll ask it anyway. Is it better to use MFC's CArray or STD's vector for dynamic arrays? I haven't ever used CArray before and had forgotten it even existed when I started writing a program, and so I used vector. Now that I've written quite a bit of code with vector, I saw something that mentioned CArray, and I'm wondering if it would be worth it to change my code to use CArray instead. Since this is an MFC app, I would imagine that CArray would be prefered, but is there any reason I should be aware of to use CArray over vector. I don't even know why CArray was created in the first place (if it ain't broke, don't fix it). Anyway, I'd like to hear some opinions and I'd also like to know the Hungarian notation standard with arrays. For example, which of the following be correct (or none of them):
CArray<double, double> m_adValues;
CArray<double, double> m_dValues;
CArray<double, double> m_aValues;
CArray<double, double> m_adValues;
CArray<double, double> m_dValues;
CArray<double, double> m_aValues;