I'm learning C programming, and in the process trying to create a Windows GUI app.
I've noticed at MSDN documentation to new applications should use UNICODE encoding. With that in mind, I added the -DUNICODE flag to the compiler.
When calling the function CreateWindowEx() to create the window, the title gets all weird when I use a char*, and the compiler gives me an error saying the function is expecting unsigned short*.
How can I convert ANSI string to unsigned short?