How to convert a char to an LPWSTR

Apr 23, 2016 at 4:47am
So I have a char table like 'char name[MAX_PATH];' and so the user is entering some stuff into it using cin and so I need to use that data to perform a function but the function isn't accepting a char type so how can I convert a char to an LPWSTR? I'm using Visual C++ for this
Apr 23, 2016 at 8:18am
Apr 23, 2016 at 12:19pm
Alternatively you can use wchar_t name[MAX_PATH] and use wcin;
Is the function a Windows function? They have also functions accepting chars.
They usually end with A
Topic archived. No new replies allowed.