3 ms·
> Use std::string and std::array or std::list /.../ While nothing is modern about this approach, if we're going the WINAPI route, there's very little to be gai
by trinix912 1y ago
> Use std::string and std::array or std::list /.../
While nothing is modern about this approach, if we're going the WINAPI route, there's very little to be gained by using std::string instead of the LPWSTR that WINAPI offers (and plays nicely with). I would definitely avoid plain C strings (char[]) but rather use the wide version (which is what LPWSTR is under the hood). But for std::array or std::list, I don't see how the codebase would vastly benefit from them.
- pjmlp 1y agoIn that case, make yourself a favour and use WIL, aka Windows Implementation Library. https://github.com/microsoft/wil https://github.com/microsoft/wil