You are compiling using the Unicode character set. There are two fixes for this. First, go to your project properties. Under Configuration Properties-->General, change Character Set to use Multi Byte Character set. Then you can do the tutorials unchanged.
I prefer a second fix. Leave your code as Unicode. Change all string literals as follows: Instead of a string like "Nehe OpenGL" it should be (LPWCSTR)L"Nehe OpenGL". All Java, C#, etc. code is always Unicode, and it's good to follow this pattern in C++ too because it's better if you wanted to internationalize your code later on.
AaronLMember Since 01 Aug 2011
Offline Last Active Aug 01 2011 10:01 AM
- Group Members
- Active Posts 1
- Profile Views 919
- Submitted Links 0
- Member Title Member
- Age Age Unknown
- Birthday Birthday Unknown
AaronL hasn't added any contacts yet.