2.6.2 - wxClipboard::GetData unicode can't read CF_TEXT
Neil Robinson
neil at robinson.to
Wed Nov 1 13:00:10 PST 2006
We always build wx for Unicode and we use unicows.dll on Windows 9x and
Me. On Windows 98, using the dnd.exe sample (compiled for debug) it
failed to paste text from the clipboard that had been copied from
notepad. It reported the following three formats on the clipboard:
CF_TEXT, CF_LOCALE, CF_OEMTEXT
and then output:
Error: Can't paste data from clipboard.
It succeeded in doing so with text copied from WordPad, but this was
probably because WordPad posted a huge array of formats, including
CF_UNICODETEXT.
It is simply not acceptable to be unable to retrieve CF_TEXT from the
clipboard, just because we are running a Unicode build. All of the
necessary code is available in the OS to convert from Ansi to WideChar.
Have I missed something? Is this a bug or known limitation? Has it been
lifted in a later version? Is it possible to work around this by
registering our own format?
Ciao, Neil
More information about the wx-dev
mailing list