TCHAR to std::string on windows


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.

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.



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?