Hi having problems changing title of console.I have included windows.h and have called the function in main but keep getting
Code:
error C2664: 'SetConsoleTitleW' : cannot convert parameter 1 from 'const char [5]' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
heres where i call it in main
Code:
SetConsoleTitle("NEWNAME");
in any of the online examples I have found this is the way it was done.Tried looking at the error code on MSDN but tbh I didnt understand the examples.
Thanks