Re: Copying text to the clipboard in HTML format
- Posted by Jonas Temple <jtemple at yhti.net> Feb 16, 2006
- 509 views
> Hi, > > I point your attention to the following sentences: > A memory object that is to be placed on the clipboard should be allocated by > using the GlobalAlloc function with the GMEM_MOVEABLE flag. > After a memory object is placed on the clipboard, ownership of that memory > handle > is transferred to the system. > > My guess is: > You use allocate_string() Instead of GlobalAlloc(). > As the system take ownership of the memory allocated, when you want to free() > it there is an access denied error. > I believe you hit the nail on the head! That's what I missed. Thanks a bunch! Jonas Temple http://www.yhti.net/~jktemple