Skip Navigation

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

mastodon.gamedev.place Ashley Gullen (@[email protected])

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...

There is a discussion on Hacker News, but feel free to comment here as well.

0
Hacker News @lemmy.smeargle.fans bot @lemmy.smeargle.fans
BOT

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

1 0

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

33 4
0 comments