Recently, I have read a book: Game programming all in one.
In chapter 7, when I have already finished coding the Monster program,
I found that the outputed text is not in English.
What can I do to solve this problem?
The code is here:
void ConLib::OutputString (char * String)
{
DWORD Written;
WriteConsole (m_Screen, String, strlen (String), &Written, NULL);
}
Another problem is the SetTitle() function. When I debug the program,
my complier, Visual C++, output the message: Error 1 error C2664: 'SetConsoleTitleW' : cannot convert parameter 1 from 'char *' to 'LPCWSTR'
How can I solve it too?
The code is here:
void ConLib::SetTitle (char * Title)
{
SetConsoleTitle (Title);
}
PS: the edition of my book is one
[Edited by - icqqq on July 7, 2006 3:11:39 AM]