Adding the pointers that way is just a mistake. Adding two
wstring
objects makes the magic:
#include <string>
#include <iostream>
#include <Windows.h>
using namespace std;
int main()
{
LPWSTR str1 = L"Hello ";
LPWSTR str2 = L"World";
wstring w1(str1);
wstring w2(str2);
wstring w3 = w1+w2;
wcout << w3 << endl;
}