Hello, it's me again! A few days I upgraded from Visual C++ 6.0 to Visual 2005 or 8.0, and did some tests, and came with the an error with a code that my old compiler would normally compile with without any errors, I made it simplistic so it only focuses on the problem:
and these are the errors that come up:
using namespace std;
SetConsoleTitle("This is the Title!");
Please help, and thanks in advance!
------ Build started: Project: Title, Configuration: Debug Win32 ------
c:\documents and settings\george\desktop\c++\title\title\code.cpp(8) : error C2664: 'SetConsoleTitleW' : cannot convert parameter 1 from 'const char ' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
Build log was saved at "file://c:\Documents and Settings\George\Desktop\C++\Title\Title\Debug\BuildLog.htm"
Title - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Can anyone help me? Why is it doing this, as it became even more strict?