_bstr_t concatenate gives 12142

yowba

New Member
I have a strange thing here.I'm concatenating \[code\]_bstr_t\[/code\] strings in order to assemble a SQL command.\[code\]_bstr_t strSQL = a+b+k+hk+Allin+hk+k+hk \[/code\]...and so on.When I print it to the console (using \[code\]std::wcout << '/n'<< strSQL << '/n';\[/code\]) I get my string, BUT with a 12142 in the beginning and end of the string. It looks like:\[code\] 12142"SELECT * FROM....."12142\[/code\]Does anyone know where it comes from?I'm using: VS2010 Express, C++, and I'm building a console app.
 
Top