Jump to content

  • Log In with Google      Sign In   
  • Create Account

AaronL

Member Since 01 Aug 2011
Offline Last Active Aug 01 2011 10:01 AM

Posts I've Made

In Topic: lesson 6 compile error

01 August 2011 - 09:31 AM

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.

PARTNERS