How to concatenate 2 LPOLESTR

Posted by BHOdevelopper on Stack Overflow See other posts from Stack Overflow or by BHOdevelopper
Published on 2010-05-26T15:10:37Z Indexed on 2010/05/26 15:41 UTC
Read the original article Hit count: 255

Filed under:
|
|
|
|

Hi, i want to concatenate 2 strings in c++, i can't use char*.

I tried the following but doesn't work:

#define url L"http://domain.com"
wstring s1 = url;
wstring s2 = L"/page.html";
wstring s = s1 + s2;
LPOLESTR o = OLESTR(s);

I need a string with s1 and s2 concatenated. Any info or website that explain more about this ? Thanks.

© Stack Overflow or respective owner

Related posts about c++

Related posts about string