Programming Role Playing Games with DirectX

Started by
3 comments, last by fastcall22 8 years, 7 months ago
?2???1 ?????VC++6.0???????????????C:\Documents and Settings\fg\??\????? (3)\BOOKCODE\CHAP16\THE TOWER\CharICS.cpp(223) : error C2018: unknown character '0x97'
2 ????????????Network ?????
??VC++6.0??????????????????????????DirectX???????????????DirectX???????
error C2018: unknown character '0x97'
Advertisement
The C++ standard only allows alphanumeric identifiers and UTF-8/ANSI files. Check the character encoding of your source files.

Additionally, you can lookup the error number, C2018, on msdn:
https://msdn.microsoft.com/en-us/library/977dd354.aspx

The compiler can also sometimes complain about comments containing non ascii chars, this has tripped me up many a time in the past.

Worked on titles: CMR:DiRT2, DiRT 3, DiRT: Showdown, GRID 2, theHunter, theHunter: Primal, Mad Max, Watch Dogs: Legion

I never realized that nc cheers
Additionally, VC6.0 has been outdated for about two decades. Once you are comfortable with the basics of C++ and DirectX, you should consider picking up Visual Studio 2015 Community Edition for free. From there, you can start using DirectX 11 with the latest Windows SDK.

Though, it partially depends on what kind of system and hardware you're using and/or targeting.

This topic is closed to new replies.

Advertisement