Click to See Complete Forum and Search --> : LocalAlloc vs new


sallypeh
February 16th, 2005, 10:11 PM
Hi,
could we just use C++, new to allocate memory rather than localalloc?
What's the difference?

Thanks,Sally

Mick
February 17th, 2005, 12:52 AM
You should use 'new' unless you have a reason to use some of the WIN32 functionality.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/memory/base/about_memory_management.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dngenlib/html/msdn_heapmm.asp