123456
wchar_t* str = new wchar_t[30]; str = L"Hello!"; str[2] = L'A'; // Access violation error?
new
1234
#include <windows.h> ... wchar_t* str = new wchar_t[30]; lstrcpyW( str, L"Hello!" );