Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Append LPWSTR-Strings

Status
Not open for further replies.

kridy

Programmer
May 21, 2001
12
0
0
DE
Hi there,
can anyone tell me how to append two LPWSTRs?

Kind regards,
Kridy
_____________
kridy@web.de
 
Hi,

I finally found wcscat() :)
Thanks for reading my question!
Kind regards,
Kridy
_____________
kridy@web.de
 
#include<string>
#include<iostream>
using namespace std;
int main()
{
wstring x,y;
x=L&quot;hello&quot;;
y=L&quot;world&quot;;
x+=L&quot; &quot;;
x+=y;
if(x==&quot;hello world&quot;)wcout<<x.begin();
else wcout<<L&quot;error&quot;;
return 0;
} John Fill
1c.bmp


ivfmd@mail.md
 
Hi John,

many thanks for your answer!
Kind regards,
Kridy
_____________
kridy@web.de
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top