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
Problem with multiple form choice and inserting into mysql
Sending a simple HTTP request
Excel feature in Java
How I can simplify a series of nested case statements in a MS SQL 2005 query
Java String Limitations
children games (mind activity) website
USB HDD for VMware ESXi 4 virtual server?
FULLText Search A View Problems
Licensing: XP Pro OEM (Resellers COA??)
finding all the points of inflection in a sine curve