I have a situation where I need to convert this:
WCHAR path[260];
at
LPCWSTR pathAfterConversion;
How can i do this?
LPCWSTR pathAfterConversion = path;
should work fine.
Please note that WCHARin fact wchar_tand LPCWSTRin fact wchar_t const*. Both are typedefs.
WCHAR
wchar_t
LPCWSTR
wchar_t const*
pathAfterConversion = path;
No conversion required.
Source: https://habr.com/ru/post/1534047/More articles:Тестирование строки и целочисленных массивов с помощью ввода пользователем - javaCapturing the screen selected by the current form in WPF? - c #Error Invalid use of void expression - cRails 4 loads multiple tables - ruby | fooobar.comDoes CQRS read ORM side or pure ADO.NET? - c #Invalid single table inheritance type .. not a subclass - ruby-on-railsHow to obfuscate lua code? - luaКак передать строковый массив из контроллера в MVC4 представления без создания нескольких действий? - asp.net-mvcWhat is the need to introduce interfaces when we already have our own super-set abstract classes? - c #Android box display displayed by fragment - javaAll Articles