How can i convert a narrow string to a wide string ?
string
I have tried this method :
string myName; getline( cin , myName ); wst
If the source is ASCII encoded, you can just do this:
wstring printerName; printerName.assign( myName.begin(), myName.end() );