Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- template<typename TC> inline void ConvertStrToPtrTChar(__in std::basic_string<TC> str, __out LPTSTR &pchar)
- {
- pchar = new TCHAR[str.size() + 1];
- pchar[str.size()] = 0;
- std::copy(str.begin(), str.end(), pchar);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement