• Advertisement

AaronL

Member
  • Content count

    1
  • Joined

  • Last visited

Community Reputation

100 Neutral

About AaronL

  • Rank
    Newbie
  1. lesson 6 compile error

    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.
  • Advertisement