Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Quick Ques (Heap)

Options
  • 29-06-2004 9:43am
    #1
    Registered Users Posts: 1,253 ✭✭✭


    Whats the hell is the heap!?

    I've heard of this plenty but I dont really know what its all about!

    At the moment I am replacing CString arrays (MFC Visual C++ 6.0) with dynamic objects, namely CStringArrays. Damn, they sound very similar!! Haha...

    Anyhoo, to quote MFC help:
    CObArray array; //Array with default blocksize

    CObArray* pArray = new CObArray; //Array on the heap with default blocksize
    So, can someone tell me what the difference is between these two construction methods!?

    Note: CObArray can easily be replaced with CStringArray. In the help files all the examples for this topic are generic as there are many different collection types.

    Any help, as always, is greatly appreciated! :D


Comments

  • Registered Users Posts: 1,253 ✭✭✭gobby


    T'is okay folks! Got chattin to one of the lads I work with and he has explained all and more!

    Cheers anyways....


Advertisement