You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. I am trying to compile the cpp with Visual Studio 2017 but the output is like the one in this picture (it translates to "you can not assign a value of type "const wchar_t *" to an entity of type "LPWSTR"") . I tried adding a cast using "const_cast<LPWSTR" and also using "(LPWSTR)" before it, but then the .exe file does not work.
The steps i am doing are in Visual Studio 2017 are:
I create a new Project > Visual C++ > Windows console application
I download and paste the code
Change the cmdline variable to get the reverse Shell
I add the line '#include "pch.h"' at the begginning because otherwise i can not compile the Project and get the .exe file.
I change the option "x86" to "x64", to get a 64-bit file.
So if i add the cast it compiles but does not work and if i do not add it, it does not compile.
Hi. I am trying to compile the cpp with Visual Studio 2017 but the output is like the one in this picture (it translates to "you can not assign a value of type "const wchar_t *" to an entity of type "LPWSTR"") . I tried adding a cast using "const_cast<LPWSTR" and also using "(LPWSTR)" before it, but then the .exe file does not work.
The steps i am doing are in Visual Studio 2017 are:
So if i add the cast it compiles but does not work and if i do not add it, it does not compile.
Thank you very much!!
Image: https://i.stack.imgur.com/hBFlB.png
The text was updated successfully, but these errors were encountered: