Windows Memory Allocation :: C++
C++ offers the new operator to allocate a section of memory via heap.
C offers the general malloc set of functions to allocate a section of memory via heap.
Windows offers a series of functions. I would like to know what is the best memory allocation tool to use under windows. Again, I am a C++ programmer.
I believe Windows has these memory related functions.
I would like to like under a C++ Windows program, what are the most appropriate memory allocation tool to use? Currently, I use C++ new operator to develop Windows winsock programs. However, I see programmers use GlobalAlloc almost all the time for Windows and Windows network programs. What is the advantage, if any, of GlobalAlloc that C++ new lacks, if any?