C++ : copy wstring to wchar_t

Job ID: 31049380

Budget: €8 – €30 EUR

In VisualStudio 2019 c++:

Convert wstring into wchar_t.
Attached file is simple example project.
wcscpy(my_wchar_t, my_wstring.c_str());
wcscpy gives error. (Suggestion is to use wcscpy (or wcsncpy_s))

Task: convert wstring into wchar_t without changing options of projects or suppressing warnings or so, preferrably with use of wcscpy (or wcsncpy_s)
Related categories: C Programming C++ Programming Visual Studio