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
Disk to Disk File Copy and Retain Modified Attribute
Mac/Unix/Linux compatibility with Windows 2008 R2 domain authentication
SQL Query Problem
Oracle query
Access 2007 - unexpected locking
ConfigurationSettings.AppS
ettings
Server tag is not well formed
exchange 2010 - edge transport server, emails are stuck in a local loop
New Line in request parameter to be passed from one JSP to another JSP
An error was encountered while retrieving user profile details.