Click here to Skip to main content
15,917,862 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalcd rom drive letter Pin
Pou6-Jun-01 15:54
Pou6-Jun-01 15:54 
GeneralReally Silly Question I Think Pin
William Bartholomew6-Jun-01 14:33
William Bartholomew6-Jun-01 14:33 
GeneralRe: Really Silly Question I Think Pin
Christian Graus6-Jun-01 14:50
protectorChristian Graus6-Jun-01 14:50 
GeneralRe: Really Silly Question I Think Pin
Vivek Rajan6-Jun-01 15:37
Vivek Rajan6-Jun-01 15:37 
GeneralRe: Really Silly Question I Think Pin
Vivek Rajan6-Jun-01 15:42
Vivek Rajan6-Jun-01 15:42 
GeneralRe: Really Silly Question I Think Pin
Alex Taylor6-Jun-01 15:50
Alex Taylor6-Jun-01 15:50 
GeneralRe: Really Silly Question I Think Pin
kvk1236-Jun-01 15:42
kvk1236-Jun-01 15:42 
GeneralRe: Really Silly Question I Think Pin
Alex Taylor6-Jun-01 15:58
Alex Taylor6-Jun-01 15:58 
When U are using the MFC there are lot many classes are there which gives the functionality of vector.

I realise that there are people here who do not speak English as a first language, but fair dinkum - 'there are a lot many classes are there' ??? 'like somay classes are there' ??? 'Initiliza' ???

Carray, CList, SafeArray like somay classes are there. U can Initiliza the classes and use it directly in your program. If you are not using MFC then inclede all the std header files.

To use CArray ( which is the same as a vector in it's O notation behaviour ( STL is defined in terms of O notation - vector was obviously meant to be an array, but it does not HAVE to be if someone comes up with a better idea )) you need to use tempplate arguments, you actually need to specify two rather than one. CList impliments a list, like deque. A list has totally different behaviour to an array in terms of speed ( quicker to remove items in the middle, slower to find them ). If you are not using MFC then you do not have CArray/CList/CSafeArray, unless there are alternate versions in the ATL headers.

Either way, the STL is more powerful, more flexible and cross platform. I recommend you use the MFC classes for the sake of learning them, but stick to STL. I also recommend you write your own list and array class, just to get a good idea of what goes on under the hood, but still use STL. I recommend the person who wrote this reply also learn the difference between container types and consider learning the STL.



Christian logged in as Alex
GeneralRe: Really Silly Question I Think Pin
Tomasz Sowinski6-Jun-01 23:46
Tomasz Sowinski6-Jun-01 23:46 
Generalx.25 Pin
trishv6-Jun-01 9:24
trishv6-Jun-01 9:24 
GeneralRe: x.25 Pin
7-Jun-01 15:17
suss7-Jun-01 15:17 
GeneralRe: x.25 Pin
Ghazi H. Wadi7-Jun-01 15:19
Ghazi H. Wadi7-Jun-01 15:19 
GeneralRe: x.25 Pin
trishv8-Jun-01 3:31
trishv8-Jun-01 3:31 
GeneralGood Pin
6-Jun-01 8:17
suss6-Jun-01 8:17 
GeneralAnonymous moron spam Pin
Christian Graus6-Jun-01 12:51
protectorChristian Graus6-Jun-01 12:51 
Generalusing bitwise operators Pin
hearties6-Jun-01 7:58
hearties6-Jun-01 7:58 
GeneralRe: using bitwise operators Pin
Stan Shannon6-Jun-01 8:43
Stan Shannon6-Jun-01 8:43 
Generaloops! Pin
Stan Shannon6-Jun-01 9:08
Stan Shannon6-Jun-01 9:08 
GeneralRe: using bitwise operators Pin
Pavlos Touboulidis6-Jun-01 8:59
Pavlos Touboulidis6-Jun-01 8:59 
GeneralRe: using bitwise operators Pin
hearties6-Jun-01 21:20
hearties6-Jun-01 21:20 
GeneralColoring individual items in List Control using SDK Pin
gb6-Jun-01 7:42
gb6-Jun-01 7:42 
GeneralRe: Coloring individual items in List Control using SDK Pin
Michael Dunn6-Jun-01 9:24
sitebuilderMichael Dunn6-Jun-01 9:24 
GeneralMFC dialog box question Pin
6-Jun-01 7:17
suss6-Jun-01 7:17 
GeneralRe: MFC dialog box question Pin
Igor Sukhov6-Jun-01 7:39
Igor Sukhov6-Jun-01 7:39 
GeneralRe: MFC dialog box question Pin
7-Jun-01 2:20
suss7-Jun-01 2:20 

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.