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
Which Analog Telephone Adapter has the best power supply on the analog ports?
How do I get the <head> section in a Joomla site to include different java script links depending on what page is accessed?
Printer Redirection on Windows 2008 R2 Terminal Server
Problem deploying VSTO addin in 64 bit Windows Terminal Server environment
management ip on Cisco ASA devices
How can I fill a list box which shows if no contact have been made in the last 90 days and no file has been added to a specific folder in the last 90 days in MS Access forms with VBA?
Script to audit AD.
How do I add a 2nd Itunes account within my Itunes for my kid?
XP Remote Desktop Connection
Exchange 2007 - Information Store Service Not Starting (Multihomed NICs)