Microsoft
Software
Hardware
Network
Question : Converting a TCHAR[] to string type in C++
Trying to append a TCHAR to a string and getting the following error:
cannot convert parameter 1 from 'TCHAR [260]' to 'const std::basic_string<_Elem,_T
raits,_Ax>
&'
Answer : Converting a TCHAR[] to string type in C++
You need to make sure you use the wide or narrow version of string according to the type TCHAR is compiled as. The simplest way is to use basic_string with a TCHAR.
1: 2:
TCHAR myTChar [260]; std::basic_string<TCHAR> myString(myTChar);
Random Solutions
how to integrate live video chat room in to my site
Cannot empty recycle bin after deleting a file with an invalid name
goto aspx page based on id value
Upgrading laptop hard drive
Using Treeview to list active directory items
Email on completed Scheduled Task
Saving 3ds Max 2009 files taking ages !!
How to make hp nx7300 start?
After installing MS SQL 2008 on a SBS Premium Server, cannot run reports no SBSMonitoring instance
Subform not showing related records