Showing results for November 1, 2004 - The Old New Thing

Nov 1, 2004
Post comments count0
Post likes count0

What was the difference between LocalAlloc and GlobalAlloc?

Raymond Chen
Raymond Chen

Back in the days of 16-bit Windows, the difference was significant. In 16-bit Windows, memory was accessed through values called "selectors", each of which could address up to 64K. There was a default selector called the "data selector"; operations on so-called "near pointers" were performed relative to the data selector. For example, if you had ...

History