Results 1 to 6 of 6

Thread: diff between vector & CArray

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2001
    Posts
    163

    diff between vector & CArray

    What are the main difference between vector and CArray?
    When I use vector and When CArray?
    Purushottam

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    CArray is the MFC class, so you may end up forced into using that occasionally.

    However, all your logic, whenever possible, should use vector in preference.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Nov 2001
    Posts
    163
    Thank You,
    So I can use any of them?
    Purushottam

  4. #4
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    You can use vector whenever you want. If you use CArray you'll have to include the whole MFC runtime.
    Use CArray only when you already use MFC and you want to make use of the few MFC-specific features of CArray like serialization support. For everything else vector is better.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Nov 2001
    Posts
    163
    Thanks corned bee.
    I am quiet confused in this thing.
    collection,
    map,
    list,
    array and vector
    could u please explain?
    Purushottam

  6. #6
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    Kedaman gave me this link a while ago:
    http://www.sgi.com/tech/stl/index.html

    all the info on the STL you need
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width