what is the difference between memory allocated by
GlobalAlloc & memory allocated by
is GlobalAlloc used in C++ or is it for C?
> when I deal with clipboard, I have to use GlobalAlloc. Because it tells you to in the manual pages perhaps? If the API's you're using have special requirements which mean you MUST use GlobalAlloc's special properties, then that is what you must use. If you're just writing standard C++, … Read More
[QUOTE=CppBuilder2006;1093535]when I deal with clipboard, I [U]have to[/U] use GlobalAlloc.[/quote] That makes sense. [ICODE]new[/ICODE] allocates within the realm of the program. Once the program exits, the memory is released. The clipboard then cleared (or broken). [ICODE]GlobalAlloc[/ICODE], I assume, leaves the allocated memory until the system clears it. [QUOTE=CppBuilder2006;1093535]is it recommended … Read More
Edited by Frederick2: n/a