in reply to Re: Win32::Clipboard and Unicode
in thread Win32::Clipboard and Unicode
The code is basically:
It seems that the assumption that the HANDLE is equal to the memory pointer is documented when the block is of type GMEM_FIXED. However, SetClipboardData documents that the HANDLE must be allocated with the GMEM_MOVEABLE flag!HANDLE myhandle = GetClipboardData(CF_TEXT); XST_mPV(0, (char *) myhandle);
Anyway, the function XST_mPV will copy a string (I presume nul-terminated single byte sequence) to the proper place. What's the equivilent function that takes a length, that I can call after I figure out the proper length of the data? the perlapi document that shows this macro doesn't have a similar one that takes a byte array or buffer or whatnot.
—John
|
|---|