   Compiling Issues with NeHe's first lesson
  Hi.I've been desperatley wanting to learn OpenGL, and many people have recommened http://nehe.gamedev.net/ 's tutorials to me.Well, when I went to compile the first lesson, I got about 19 of these errors:Quote:1>c:\documents and settings\ben\my documents\visual studio 2008\projects\learning\nehe - opengl\lesson 1\lesson 1\main.cpp(60) : error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'const char [29]' to 'LPCWSTR'1>   Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast1>c:\documents and settings\ben\my documents\visual studio 2008\projects\learning\nehe - opengl\lesson 1\lesson 1\main.cpp(64) : error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'const char [37]' to 'LPCWSTR'1>   Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style castI typed everything up perfect, and I find it really odd that it's telling me that parameter 2 is wrong.BTW, I'm using "MessageBox" like this:Quote:MessageBox(NULL, "Release of DC and RC Failed.", "SHUTDOWN ERROR", MB_OK | MB_ICONINFORMATION);And I've gotten other MessageBox's to compile before when using them like that.Any help is appreciated.P.S., What Libs do I need to add into the linker also?   
  If you're using Visual Studio, I think you want to change this option:-Project -Properties  -Configuration Properties   -General    -Character Set : Use Multi-Byte Character SetI think this will fix the LPCWSTR error.   ;  Thanks Karwosts, that did the trick.Does that Multi-byte thing do Unicode or note?   ;Quote:Original post by CuddleBunniezzz12I've been desperatley wanting to learn OpenGL, and many people have recommened http://nehe.gamedev.net/ 's tutorials to me.You were given wrong advice. I recommend staying away from the nehe tutorials as far as you possibly can. They're about the worst possible way to "learn" a completely obsolete version of OpenGL. You will have to unlearn everything later on, when you want to move on to actual modern OpenGL.;  That said Yann L. I've taken to learning some NEW OpenGL code.Last time I did graphics programming in my spare time was like 5 years ago, when the NeHe stuff was kinda nice to have around.What is out there for learning OpenGL for the here and now? I'd be interested in some links as I'm sure is OP.   ;  The latest edition of the book Beginning OpenGL Game Programming has been an invaluable resource to me.  The first chapter on primitives brushes on the old fixed function process, but after that it's all VBO's and GLSL.   ;  Another solution could be by adding L to the beginning of the text.MessageBox(L"Text", L"Title" ...);