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.
C++ – the simplest way to convert char[] to/from tchar[] in C/C++(ms)
ccharstringtchar
Related Topic
- C++ – What does the explicit keyword mean
- C++ – The Definitive C++ Book Guide and List
- C# – Case insensitive ‘Contains(string)’
- C++ – the “–>” operator in C/C++
- Sqlite – Improve INSERT-per-second performance of SQLite
- C++ – the copy-and-swap idiom
- C++ – What are the basic rules and idioms for operator overloading
- What does the ??!??! operator do in C
Best Answer
The simplest way is to use the conversion macros:
MSDN