what is the difference between memory allocated by GlobalAlloc
& memory allocated by new
.
is GlobalAlloc used in C++ or is it for C?
:)
CppBuilder2006
-5
Junior Poster
Recommended Answers
Jump to Post> 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 …
Jump to Postwhen I deal with clipboard, I have to use GlobalAlloc.
That makes sense.
new
allocates within the realm of the program. Once the program exits, the memory is released. The clipboard then cleared (or broken).GlobalAlloc
, I assume, leaves the allocated memory until the system clears it.is it …
All 6 Replies
Salem
5,138
Posting Sage
Frederick2
189
Posting Whiz
CppBuilder2006
-5
Junior Poster
Salem
5,138
Posting Sage
WaltP
2,905
Posting Sage w/ dash of thyme
Team Colleague
CppBuilder2006
commented:
convincing
+0
CppBuilder2006
-5
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.