TCHAR to std::string on windows

Hi

I am using this fragment of code to find the my documents folder, but it returns a type of TCHAR, and anything I try to send it to wants std::string.

TCHAR Buffer[MAX_PATH];
SHGetSpecialFolderPath(NULL, Buffer, CSIDL_MYDOCUMENTS, 0);

I googled how to convert between them, but tnone of the examples givem work for me. Does anyone know a simple way to do it in oF, or a way to get the path to MyDocuments as a string.

Thanks

Nick

I managed to get it to work by changing the project properties to Use Multi-byte character set, rather than unicode. Does this have any ramifications if i give a compilied app to somebody?