I'm writing a DLL and want to be able to switch between the unicode and multibyte setting in MSVC++2010. For example, I use _T("string")
and LPCTSTR
and WIN32_FIND_DATA
instead of the -W and -A versions and so on.
Now I want to have std::strings which change between std::string
and std::wstring
according to the unicode setting. Is that possible? Otherwise, this will probably end up getting extremely complicated.