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
Blackberry 9700 email notification
make bold text in email
Can I use VBA to do conditional formatting in an Access 2003 form?
Air & flash sharing the same shared object
Non existent domain when doing an nslookup to second domain
Would you support the Japanese putting up a memorial at Pearl Harbor?
FM - How to Display Only Selected Entries from a Repeating Field from a Related Record
How do I add var to a function
Cisco 831 port forwarding issue
how to backup SBS 2008 to folder