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
Why can't I insert a break point in asp.net backend code?
Print list of users in LDAP group with perl
Setup SBS (Exchange for Outlook 2007) to send recieve SMS write to DB on 1 server
I need IDS software for a Windows 2008 64-bit server ASAP...any recommendations???
Strange NDR when sending mail
Incoming spam
QueryString in URL
Need two data sets in a sql query from the same table
Need help in updating a SQL query to retrieve multiple data from a signle column
SQL Agent fails to execute a program