VC++ keeps giving me 11 errors for some reason. Here they are:
Font.cpp
The purpose of this code is to make a class out of Nehe''s First Font tutorial: Lesson 13: Bitmap Fonts.
1)error C2144: syntax error : missing '';'' before type ''void''
2)error C2501: ''WINGDIAPI'' : missing storage-class or type specifiers
3)fatal error C1004: unexpected end of file found
Main.cpp
4)syntax error : missing '';'' before ''*''
5)error C2501: ''g_font'' : missing storage-class or type specifiers
6)error C2227: left of ''->BuildFont'' must point to class/struct/union
7)error C2065: ''cnt1'' : undeclared identifier
8)fatal error C1903: unable to recover from previous error(s); stopping compilation
NeHeGL.cpp
9)syntax error : missing '';'' before identifier ''g_isProgramLooping''
10)''BOOL'' : redefinition; typedef cannot be overloaded with any other symbol
11)fatal error C1004: unexpected end of file found
The first 3 errors point to gl.h.
The 5th and 6th errors point to:
CFont* g_font;
The 7th error points to:
g_font->BuildFont(-24,0,0,0,FW_BOLD,FALSE,FALSE,FALSE, ANSI_CHARSET, OUT_TT_PRECIS, CLIP_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS, ANTIALIASED_QUALITY,FF_DONTCARE|DEFAULT_PITCH, "Courier New");
The 8th and 9th errors points to:
glColor3f(1.0f*float(cos(cnt1)),1.0f*float(sin(cnt2)),1.0f-0.5f*float(cos(cnt1+cnt2)));
The last error (the BOOL error) points to:
static BOOL g_isProgramLooping;
If you need any of the other code plez ask.
Thanks in advance