How to convert a char to an LPWSTR

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