rate up
0
rate down
C++ argument of type "const wchar_t*" is incompatible with parameter of type "WCHAR*"
Help). I’m following an example of creating an application from the Rastertek website. In section .[http://][www.rastertek.com/dx11s2tut04.html] reached the following lines of code: bool ColorShaderClass :: Initialize (ID3D11Device * device, HWND hwnd) { bool result; // Initialize the vertex and pixel shaders. result = InitializeShader (device, hwnd, L "../ Engine / color.vs", L "../ Engine / color.ps"); if (! result) { return false; } return true; } but when I wrote the line: result = InitializeShader (device, hwnd, L "../ Engine / color.vs", L "../ Engine / color.ps"); Visual Studio program underlined the letter **L** and showed the following error: (**argument of type "const wchar_t *" is incompatible with parameter of type "WCHAR *"**). If you download the finished files from the site, then they will not get any errors. Perhaps the error comes from the fact that I started a new (clean) project and the Visual Studio environment created automatic presets ?!
Sign in to answer!