Isn't it better to use std::string and std::wstring for everything except strFilenameW?