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
Alignment on Datagrid not proper
Free Alternative Of Ms Sharepont Server
Cisco QOS - Policing
Do I need Enterprise Class Harddrives in a Non Mission Critical Server ?
Display subform data linked to multiple data on main form
ISA Server PPTP Site-To-Site Link Not Working
Using hyperlink control within a sqldatasource datalist control to pass a querystring value coming from the sqldatasource
eCommerce in .NET
Blocking the Escape key.
looping array makes array not empty, even though reset applied at start of loop