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:
Code:
#include <iostream>
#include <windows.h>
using namespace std;
int main()
{
SetConsoleTitle("This is the Title!");
system("PAUSE");
return 0;
}
and these are the errors that come up:
Code:
------ Build started: Project: Title, Configuration: Debug Win32 ------
Compiling...
Code.cpp
c:\documents and settings\george\desktop\c++\title\title\code.cpp(8) : error C2664: 'SetConsoleTitleW' : cannot convert parameter 1 from 'const char [19]' 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 ==========
Please help, and thanks in advance!
Can anyone help me? Why is it doing this, as it became even more strict?