Skip Navigation

What it takes to pass a file path to a Windows API in C++

mastodon.gamedev.place Ashley Gullen (@AshleyGullen@mastodon.gamedev.place)

If you thought JavaScript was a mess, here's what it takes to pass a file path to a Windows API in C++: 🧵 - Windows uses UTF-16, but most modern software uses UTF-8 - Converting UTF-8 to UTF-16 requires calling MultiByteToWideChar twice (once for size, second to convert) - Alternatively you can set...

4
4 comments