This seems like a pretty softball question, but I always have a hard time looking up this function because there seem there are so many variations regarding the referencing of char and tchar.
The simplest way is to use the conversion macros:
MSDN
MultiByteToWideChar but also see "A few of the gotchas of MultiByteToWideChar".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With