DZone voters are special people. Be special. Login and vote now.
By mswatcher
via codeproject.com
Submitted: May 16 2008 / 23:15
For conversion of strings betwen UTF8 and UTF16 (as well as other formats) Microsoft gives us the MultiByteToWideChar and WideCharToMultiByte functions. These functions use null terminated char/widechar based strings. Use of those strigs requires a bit of memory management and if you use the functions extensively your code may end up looking like a complete mess. That's why I decided to wrap these two functions for use with the more coder-friendly CString types
Add your comment