I want to assign a TCHAR char array to std::string in VC++ 2005, how should i do that? a simple assignment gives error i.e
TCHAR buffer[MAX-1];
std::string data;
//some operation for filling the buffer
data = buffer; //This gives error
Plz help me in doing this operation.