#ifdef _UNICODE
typedef std::wstring tstring;
typedef std::wstringstream tstringstream;
else
typedef std::string tstring;
typedef std::stringstream tstringstream;
typedef std::wstring tstring;
typedef std::wstringstream tstringstream;
else
typedef std::string tstring;
typedef std::stringstream tstringstream;
#endif
注意:是typedef,而不是#define,因为是定义类型,另,typedef要有分号