"Nikolay Sivov" bunglehead@gmail.com wrote:
Why do you need to allocate an intermediate roletextA?
WideCharToMultiByte requires to have a sufficient buffer. I think it's the easiest way to allocate necessary buffer instead of using local buffer of some hardcoded length. What do you think?
And what is the problem with WideCharToMultiByte?