• Advertisement

Archived

This topic is now archived and is closed to further replies.

Free memory and linked-lists

This topic is 5937 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi thare. I have two general Q''s for ya''. One: How can I get the current amount of RAM avalible and the total RAM on the machene (C++) Two: Is it a good idea to use CList from MFC, or is it beter to make your own list api? - Thanx

Share this post


Link to post
Share on other sites
Advertisement
under windows : GlobalMemoryStatus()

list : use the std::list (or std::vector if what you really want is a dynamic array)

Share this post


Link to post
Share on other sites
I would suggest u use STL list, but that''s just my own (prejudiced I''m sure) opinion ...

---------------

I finally got it all together...
...and then forgot where I put it.

Share this post


Link to post
Share on other sites
I''d highly suggest the STL linked list(s) over any list that came with MFC. Although, I''m weird and still like to write my own linked list and string classes. However, I have 4 different types of linked lists I like to use (2 of which aren''t in the STL), so I guess that''s an excuse.

[Resist Windows XP''s Invasive Production Activation Technology!]

Share this post


Link to post
Share on other sites
I''m a big MFC fan, but MFC''s containers are extremely lacking when compared with the STL''s containers.

Share this post


Link to post
Share on other sites

  • Advertisement