Re: Win32Lib and Unicode
- Posted by Pete Stoner <stoner.pete at ?mail?com> Mar 08, 2008
- 645 views
Matt Lewis wrote: > > CChris wrote: > > > > If your tooltip control can handle 16-bit strings, you are done. Otherwise, > > we'll have to go Larry's route, and this won't be on the next release I'm > > afraid. > > Yes, I'd looked at possibly doing this previously. You'd need to change all > > of the dll imports from using the ansi to using the wide versions (i.e., > CreateWindowA vs CreateWindowW). Plus you'd have to do the string conversions > every time the user passed a string to the library. It's a lot of work. > > Matt OK Chris and Matt, thanks for looking at this, I think I'm gonna settle for what I've got. I've found that the existing tooltip displays the correct character from the UFT-8 conversion up to unicode #FF, #00 by just passing the first byte. That covers most of the characters I need and since the wPutsW works fine for all the unicode I'll stick with that for now.. Thanks PeteS