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
VMX fto multiple machines
Migration from win 2008 sbs to one win 2008 dc\file server and one win 2008 exchange server.
remove part of an asp string
Excel Cells with Formulas not updating when inputs change
DB2 Procedure
"AC" colum has mac address if it does not have a - hyphen place one. If it already has do nothing.
HDD partition
SQL Query to give percentage of colour customers
Unix Shell script to simplify scp via reverse ssh tunnel
Looking for help with a new DC