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
Outlook 2007 problems connecting to Exchange 2007 Server
regex move command in Ubuntu, how would I move the following files to a directory?
AD or local PC Profile issue
Access 2007, invoke Manage Replies wizard via on form cmb
MS Access Trim function
sql server udp port
Windows 7 redirected folders don't appear offline using SBS 2008
0xc004e003 error code activation problems windows 7
There is a problem with this website's security certificate., IE8 only, Firefox fine
message box